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:
- $("select").each($(this).change(
- function(){
- alert($(this).val());
- }
- ));