jQuery – clearQueue() Method
The clearQueue() method removes all items from the queue that have not yet started to run. If started, they will run to completion.
The clearQueue() method removes all items from the queue that have not yet started to run. If started, they will run to completion.
The clone() method makes a copy of selected elements, including child nodes, text and attributes.
The contents() method returns all direct children, including text and comment nodes, of the 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 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 tree. In the following, any click events happening on the div will not be executed.
In the following, the click event will NOT bubble up to its parent element such as a p or div. What this means is if the parent elements have click events attached to them, they will not fire when clicking on the span , even though the span is a part of those elements.
The fadeIn() method gradually changes, fades in, the opacity for the selected element from completely hidden to completely visible.