jQuery – click() Method
The click event occurs when an HTML element is clicked.
The clone() method makes a copy of selected elements, including child nodes, text and attributes.
The closest() method returns the first ancestor of the selected element.
The contents() method returns all direct children, including text and comment nodes, of the selected element.
The css() method sets one or more style properties for the selected elements.
The dblclick event occurs when an HTML element is double-clicked.
The data() method attaches data to, or gets data from, a selected element.
The delay() method sets a timer to delay the execution of the next item in the queue.
The dequeue() method removes the next function from the queue and executes the function, allowing the remaining items in the queue() to continue.
The detach() method removes the selected elements, including all text and child nodes, but keeps data and events.
The each() method specifies a function to run for each matched element.
The empty() method removes all child nodes and content from the selected elements, but does NOT remove the element itself or its attributes.
The eq() method returns an element with a specific index number of the selected elements. 0 for element 1, 1 for element 2, 2, for element 3, etc.
The event.isDefaultPrevented() method checks whether the preventDefault() method was called for the event.
The event.isImmediatePropagationStopped() method checks whether the event.stopImmediatePropagation() was called for the event.
The event.isPropagationStopped() method checks whether event.stopPropagation() was called for the event.
The event.preventDefault() method stops the default action of an element from happening, such as preventing a link or button from working.
The event.stopImmediatePropagation() method stops the rest of the event handlers from being executed or bubbling up the DOM.
The event.stopPropagation() method stops the bubbling of an event to parent elements, preventing any parent event handlers from being executed.
The fadeIn() method gradually changes, fades in, the opacity for the selected element from completely hidden to completely visible.
Thanks for your support!
All are affiliate links. Thank you for your support!