[jQuery] How do I run a function on my selected items?
Here is my selection: $(".myClassName")
Here is my function: function myFunction { alert( $
(this).attr('id'); }
So, foreach selected element in my selection I want to run myFunction
on it.
Does that make sense?
Thanks!