Hi all,

I have a question about .each construct.  I have the following snippet code,
but for some reason it doesn't do what I expected it to do.  Have I missed
something ?

$(".MyButton").each(function(){

    this.click(function(){ alert(this.id;) });

});

Thanks for the help,
Chris
-- 
View this message in context: 
http://www.nabble.com/Question-about-.each%28%29-tf3233682.html#a8985143
Sent from the JQuery mailing list archive at Nabble.com.


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to