how to get data from select code example
Example 1: retrieve data from option select js
//For <select id='brew'> with multiple options :
var brew = document.getElementById('brew');
var myImportantValue = brew.options[brew.selectedIndex].value;
Example 2: get the data from selected item in select
$(this).find(':selected').data('id')