var name = $('select#family').find(':selected').data('name'); var wife = $('select#family').find(':selected').data('wife');