[jQuery] Bug: event binding / unbinding. help!
Hmm slightly more info. I spotted the obvious potential stupidity, which was that I wasn't returning false, so of course it ended my click handler, spotted the new one and ran that, etc...
Adding 'return false;' to the end makes Firefox run test4.1, test4.1, test4.2 then toggle as expected. IE however runs test4.1, then the 2nd iteration it continuously switches between test4.2 and test4.1 without ending the handler chain at all.
Removing the 'onclick' attribute and setting the handler with .click() in $(document).ready() fully corrects the fault in firefox, hence this is the same fault I encountered yesterday.
In IE it makes no difference and it still bounces between the two click handlers after the first iteration.
--rob