Event Methods

events Method:

The events method will create an event listener. It will allow many different event types to be deployed in the single method on any number of elements at once.

main selector flags: all, odd, even, single, and, range

Parameters

param 1: A string value of what event type(s) to perform

param 2: A function that performs the event(s) two parameters are passed into the function "e" and "t". "e" outputs the event object and "t" outputs the event target

hide Method:

The hide method hides the selected element by applying css to it.

main selector flags: all, odd, even, single, and, range

show Method:

The show method shows an otherwise hidden element by applying css to it to make it visible

nodeIndex Method:

The node index returns the selected element's number. If the element is one of many with the same class name or id it will return which element it is in the form of a number in the context of the DOM.

Parameters

param 1: String value of the element's class name or id.