I needed to toggle some text between “show help” and “hide help”.
First, I wrote this and thought I was good:
That flips the text from “Show Help” to “Hide Help”. But the code can be made even shorter by calling toggle on both spans at once:
I heart jQuery.