Nancy O. wrote:
Or, you could use jQuery Condense -
jsillitoe/jquery-condense-plugin · GitHub
Live example
That's very elegant. My only problem with jQuery and jQuery plugins is that you often end up adding a lot more JavaScript to a page than it really needs.
My relatively short custom JavaScript would be even shorter if all browsers supported up-to-date standards (ECMAScript 5).