First of all, thank you for looking at this. I didn't even know how should I properly ask this question but I'll give it a shot...
Currently I have this function that is triggered when the value in said select menu is changed:
- $("#SELECT-A").change(function () {
- // do task C
- }
Next, when the value in another select menu is changed, I would like the same thing happen too, i.e.
- $("#SELECT-B").change(function () {
- // do task C
- }
Instead of copying all the events in first function to another, is there a better approach to this? I'm a newbie to JQuery so please pardon my ignorance.