Event bubbling in jQuery
Let’s say we have the following document structure: Thus, we have a three-level structure: at ...
Event object in jQuery
The object Eventis passed to the event handler with a number of parameters related to the event. The...
Registering and deleting event handlers In jQuery
Events allow us to track the state of an element and process user input. Using standard JavaScript c...
Removing elements In jQuery
remove method The method remove([selector])removes elements from the DOM structure. For example, we ...
Replacing elements in jQuery
replaceWith method The method replaceWithreplaces the internal content of the element with the new c...
Adding Child elements in jQuery
If the wrap method deals with parent elements, and the append/prepend methods deal with child elemen...
jQuery Wrap Method
In the previous paragraph, we inserted child elements into an already existing element. But we can a...
Creating and adding child elements in jQuery
Creating new elements To create new HTML markup elements, you can use the jQuery function, passing i...
Working with Element content jQuery
The jQuery library provides us with a convenient toolkit for working with the content of an element ...
Using Classes in jQuery
Adding a class To add a class to an element, the method is used addClass(‘classnames’), ...