I have a select with id="agentSelect" and onchange="updateDutyRecord()". Once I choose an option, can I reference the select and option like this?
function updateDutyRecord() { $('#agentSelect', this).change(function() { $('option:selected', this).each(function() {