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

How to logout from a login page in asp.net -

Stack level too deep error after upgrade to rails 3.2 and ruby 1.9.3 -