how to get data attribute value of selected option in jquery other element code example Example: jquery get data attribute of selected option $(this).find(':selected').data('id')