Chapter 14.5.2. Working with Style
As you sit at your computer, wearing a tuxedo (or evening gown, as the case may be), sipping a martini, you may think to yourself, â€œNow Iâ€™m working with style.â€ However, because this is a programming book, this section is not about fashion. Itâ€™s about manipulating the styles that are applied to the objects in your web pages.
The most basic bit of style that you can apply to a DOM element is whether that element is visible. No need to worry about fonts if the user canâ€™t even see the element, right?
There are times when you need to hide an element and display it again when the user performs some action. This is common in web applications, and itâ€™s easy to do with MochiKit. hideElement(e1[, e2, ...]) ...