bind a function to all "select" that runs on change

bind a function to all "select" that runs on change

Hi guys, I hope someone can help me out here...
I'm pretty new to jQuery and am trying to attach a function to the change event on all the selects on a window, but I don't really get how to do it.
This is what I have thus far:


  1. $("select").each($(this).change(
  2.       function(){
  3.             alert($(this).val());
  4.       }
  5. ));