Most of jQuery's event-handling methods correspond directly to native DOM events. A handful, however, are custom handlers added for convenience and cross-browser optimization. One of these, the
.ready() method, we have discussed in detail already. Others, including
.focusout(), normalize proprietary Internet Explorer events of the same name. Two custom jQuery handlers,
.hover(), are referred to as compound event handlers
because they intercept combinations of user actions, and respond to them using more than one function.
Suppose that we wanted to be able to hide our style switcher when it is not needed. One convenient way to hide advanced ...