skip to Main Content

Struggling to ASP.NET C# Ajax novice question – Jquery

I changed the code with a simple like these <script src="http://code.jquery.com/jquery-1.10.2.min.js" type="text/javascript"></script> <script type="text/javascript"> $(document).ready(function () { $('#RadioButtonYes').click(function () { var enterdata = document.getElementById("RadioButtonYes").value; $.ajax({ type: "GET", url: "radiobutton03ask.aspx/SyncData", contentType: "application/json charset=utf-8", dataType: "json", data: { 'data': enterdata }, success:…

VIEW QUESTION

jquery get selected element of select with optgroup is null

i have a select fieldwith an optiongroup on a website that will be populated by ajax. <select id="wlistid" name="wlistid"> <optgroup label="My List"></optgroup> <optgroup label="Brother List"> <option value="5">First</option> <option value="8">Second</option> </optgroup> </select> i use this code to load the select: $('#wlistid').load('ajax.php',{'ajaxcall':'getOptions');…

VIEW QUESTION
Back To Top
Search