I have a drop down list that fetches values from db as follows
$.get(\'/getJobs\', function (jobs) { seljobs = jobs; var i = 0; jobs.forE
Try the change event and selected selector
$('#jobSel').change(function(){ var optId = $(this).find('option:selected').attr('id') })