The jQuery API .click() method allows you to run a series of steps in a function when the visitor clicks on the specified element.


In the example above, the .click() API is waiting for the visitor to click on the item with id="openBox". When this event occurs, the various steps in the function will start. In this cas it will remove the class="inactive" form the element with an id="talkBox"

This is a very simple concept, but used extensively in jQuery.