jQuery – first() Method
The first() method returns the first element of the selected elements.
The focus event occurs when an element gets focus when selected by a mouse click or by tabbing to it with the tab keyboard key.
The focusin event occurs when an element or any elements inside that element gets focus.
The focusout event occurs when an element or any elements inside that element loses focus.
The .getJSON() method is used to get JSON data using an AJAX HTTP GET request.
The .getScript() method is used to get and execute a JavaScript using an AJAX HTTP GET request.
The has() method returns all elements that have one or more elements inside of them, that matches the specified selector.
The hasClass() method checks if any of the selected elements have a specified class name, and returns “true” if any do.
The height() method sets the height of the selected elements, not including padding, border, or margin.
The hide() method hides the selected element. The hidden item will no longer take up space on the page, affecting the layout.
The hover() method specifies two functions to run when the mouse pointer hovers over the selected element, triggering the mouseenter and mouseleave events.
The index() method returns the index position of specified elements relative to other specified elements, and if not found, will return -1.
The innerHeight() method returns the inner height of the FIRST matched element, including padding, but NOT including border and margin.
The innerWidth() method returns the inner width of the FIRST matched element, including padding, but NOT including border and margin.
The insertAfter() method inserts HTML elements after the selected elements.
The is() method checks if one of the selected elements matches the selectorElement.
The insertBefore() method inserts HTML elements before the selected elements.