Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get attribute of selected option jquery

var option = $('option:selected', this).attr('mytag');

or

$('#location').find('option:selected').attr('myTag');
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #attribute #selected #option #jquery
ADD COMMENT
Topic
Name
2+9 =