I have the following functions:
$("input[id^='Position_']").change(function () { update('Position'); })
$("input[id^='Status_']").change(function () { update('Status'); })
$("input[id^='Location_']").change(function () { update('Location'); })
Is there some way that I could combine these functions into one and have the parameter passed in the update function be set automatically based on whichever field value changed?
1 Answer