jquery option selected data code example Example: jquery get data attribute of selected option $(this).find(':selected').data('id')