jquery get data attribute of selected option

JavaScript
$(this).find(':selected').data('id');$(this).find(':selected').data('id')
Source

Also in JavaScript: