jQuery Archive

jQuery html() method example

In this post,  we are going to see jQuery html method. html method is used to get html content of first matched elements,  other elements will be ignored and html(‘new html content’) is used to …

jQuery toggleClass example

With jQuery toggleClass method, you can add or remove class depending on its presence.  If class is present , it will be removed and if class is not present , it will be applied.  …