[jQuery] Can I use a reference to a select id in a function like this?

[jQuery] Can I use a reference to a select id in a function like this?


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() {






    • Topic Participants

    • rick