I'm fairly new to the framework and I've been messing around a bit.
These below confuses me.


1.  Why is this snippet not working?  Firefox's error console throws
an error saying < $("button")[0].bind is not a function >
$("button")[0].bind("click", function(event){alert(this)});


2.  And why does this work?
$($("button")[0]).bind("click", function(event){alert(this)});

Reply via email to