jQuery is a fast, small, and feature-rich JavaScript library. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.
Once downloaded,you can use jQuery in your project by accessing the Client Javascript section of the Presentation Template. Alternatively you can access the same section in the Form Properties on a form by form basis.
To call a jquery function, a control must have either an Element ID or Element Class. Both can be assigned in the Html Element Properties of the control. From here, events can be added to the control. In this example an on click event of a parent panel calls slideToggle() on its child, which has style display:none.
$("#contentPanel").slideToggle();
By clicking on the parent panel, the child will slide down. Clicking again will slide the panel back up to hide it.