Appending a single option
to a dynamically loaded select
fails without any error. This is jQuery code
$("#problem").load("docType.html");
$("#problem").append("<option value='All'>All</option>");
This loads options with option group from the external file successfully but fails to append the 'All'
option. No error or warning though !
docType.html contents
<optgroup label="Billing">
<option value="Incorrect Bill" selected="selected">Incorrect Bill</option>
<option value="High Bill">High Bill</option>
</optgroup>
<optgroup label="Other">
<option value="Others">Others</option>
</optgroup>