Wybierz JQuery Wybierz nazwę danych
var name = $('select#family').find(':selected').data('name');
var wife = $('select#family').find(':selected').data('wife');
Shadow
var name = $('select#family').find(':selected').data('name');
var wife = $('select#family').find(':selected').data('wife');