Function & event

Function & event

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:

  1. $("#SELECT-A").change(function () {
  2.   // do task C
  3. }
Next, when the value in another select menu is changed, I would like the same thing happen too, i.e.
  1. $("#SELECT-B").change(function () {
  2.   // do task C
  3. }
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.