Reputation: 63
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.
Upvotes: 5
Views: 26701
Reputation: 121
Think would be better to use .val()
$('#yourSelectId').change(function() {
var selectedVal = $('#yourSelectId').val();
});
Upvotes: 1
Reputation: 5912
try this:
$('#yourSelectId').change(function() {
var selectedVal = $('#yourSelectId option:selected').attr('value');
});
you will get the value inside selectedVal
Upvotes: 19