Ticket #8573 (closed bug: wontfix)
Using a jQuery selections function as an eventHandler confuses jQuery.
|Reported by:||kitsunde||Owned by:|
$("button").live("click", $("div").hide );
Results in an error: Chrome 11 dev: #<HTMLButtonElement> has no method 'animate' Firefox 3.6: this.animate is not a function
Indicating that the hide call is being executed on the "button" selection rather than the "div" selection.
Test case: http://jsfiddle.net/bLAvM/
I've also tested in jQuery 1.3.2 which gives the same problem, and I've attempted to use $("button").click instead of .live with the same exception.