I was under the impression that I could get the value of a select input by doing this $(this).val(); and applying the onchange parameter to the sel
$(this).val();
onchange
Try this-
$('select').on('change', function() { alert( this.value ); });
One Two
You can also reference with onchange event-
function getval(sel) { alert(sel.value); }