Hi there!
I got a dropdown in a form that I would like to set with a value that I get from a servercontrol. This value is dynamic and I can fetch this from it's CSS class. It's working just fine, but if the dropdown has 20 or more items (options) it's not working in IE9 and below. It seems like the dropdown in IE turn into another kind of hybrid mode when it's 20 or more, but it's working just fine if 20 or more in other browsers.
This script will do it if the items are below 20:
var Simple = $('.CurrentPageID').html();
$("select[title='PagesID']").val(Simple);
If I use input instead of select, the dropdown will display what I want, but I cannot save that value, because I have to physically select the value that displays in the dropdown, it seems just to be selected but it is not..
var Complex = $('.CurrentPageID').html();
$("input[title='PagesID']").val(Complex);
Any ideas out there?