Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jquery get data attribute of selected option

$(this).find(':selected').data('id')
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #jquery #data #attribute #selected #option
ADD COMMENT
Topic
Name
8+7 =