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'); 

http://jsfiddle.net/gtpak/


Comments

Popular posts from this blog

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

c# - Resource not found error -