The following code will not work for me in ie6 but unsurprisingly, it does work in every other browser:
$('#myDropdown').val('value');
I have no idea why this is happening.
Any thoughts?
You probably need to do something like
$("#myDropdown > option[selected]").removeAttr("selected");
$("#myDropdown > option[value='value']").attr("selected","selected");
Just a guess.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With