hello I have a dropdownlist
. I am using jquery plugin to give style to dropdownlist
. jquery plugin is jquery.dd.js. but my problem is selectedindexchanged
event is not working in Internet exlorer 8 although it is working fine in other browsers.
try this:
$('#yourSelectId').change(function() {
var selectedVal = $('#yourSelectId option:selected').attr('value');
});
you will get the value inside selectedVal
Think would be better to use .val()
$('#yourSelectId').change(function() {
var selectedVal = $('#yourSelectId').val();
});
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