.change(handler); How to create a personallized handler to add to the .change method

.change(handler); How to create a personallized handler to add to the .change method

Hello to everyone and sorry for my bad english.
My problem is the following.
I have to use the .change() method for a "select" element:
  1. $select = $('#idElement");
  2. $select.change(function() {
  3. // Some action
  4. });
What I want to do is to create a stand-alone function in its own right to insert in .change method. Something like:

  1. $jQuery.fn.myFunction() {
  2. }
  3. $select.change(myFunction);
And also I'd like to use the (this) parameter also in myFunction;

How can i do this?
Thank's in advance!