skip to Main Content

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