Thread:Mathmagician/@comment-93604-20120509230753/@comment-3508190-20120512205927

Oops. I wasn't aware that jQuery already has a "toggle" handler :)

I'll rename it - just to be safe.

There is no such thing as a "real" handler. There's only the one that's currently called. Normally it is external activity - such as a mouse click or load event - that triggers the handlers, but from time to time it may be convenient to trigger handlers with JavaScript - and, yes, why not from within other handlers? What difference does that make?

And what's the point of unwrapping the button HTML?