Syntax

Example

In the jQuery code listed above, the bind() method attaches the click event and specifies the slideUp method to run on the element with an id of #div1.