Set selected value:
var selectstring = 'select option[value="' + selectedValue + '"]';
$(selectstring).attr('selected', true);
Get selected value:
$("#dropdownlistId").change(function () {
alert($("#dropdownlistId").val());
});
No comments:
Post a Comment