Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jquery select selected get data name

var name = $('select#family').find(':selected').data('name');
var wife = $('select#family').find(':selected').data('wife');
 
PREVIOUS NEXT
Tagged: #jquery #select #selected #data
ADD COMMENT
Topic
Name
2+3 =