I have looked at all the answers related to this, but still cannot figure out. Please help. I have a jquery code as below :
$('#DDPrimaryServiceLine').find('option:contains("' + rowData['Primary_Service_Line'] + '")').attr("selected", true);
rowData is generated from ajax through DB call. Also originally the select is empty ,it is getting dynamically populated at run time. By Default it has null as selected.
On running, the drop down displays default selected null in IE9, though it works perfectly well in Google Chrome.
Please suggest. (I tried writing
$("#DDPrimaryServiceLine option:selected").removeAttr('selected');
too in my code. But doesn't work )