jquery - Get value of attribute added to the dropdownlist -
<option visible="false" value="5"></option> this asp.net dropdownlist
i have added attribute visible in code behind. want value of visible attribute jquery.
say name of dropdownlist vehicleslist
i have tried:
var value = $('#ctl00_maincontent_dropdownlist option:selected').attr('visible') but value undefined.
$isvisible = $('select option:selected').attr('visible');
Comments
Post a Comment