The jQuery toggleClass() method alternates between adding and removing specified classes from selected elements. For example, if a paragraph (p element) has class “highlight” then… [Read More]
jQuery removeClass() Method
The jQuery removeClass() method is used to remove one or more classes from the selected elements. It works just opposite to the addClass() method which… [Read More]
jQuery hasClass() Method
In this tutorial, you will learn how to use jQuery hasClass() method. This method checks if a specified class assigned to the specified element. Syntax… [Read More]
jQuery addClass() method
The jQuery addClass() method is used to add the class names to the selected elements. This is especially useful when you want to add styles… [Read More]
jQuery Tutorial for beginners | Learn jQuery
I have written several tutorials on jQuery starting from the basics to the advanced levels. I have consolidated all the tutorials and prepared a list… [Read More]
jQuery html() method
jQuery html() method is used to set or return the content of the selected elements. When html() method is used to set the content of… [Read More]
jQuery scroll() Method
jQuery scroll event occurs when the user scrolls in the specified element. jQuery scroll() Method attaches an html element to the event handler function and… [Read More]
jQuery resize() Method
The resize event occurs when the size of the browser window is changed. jQuery resize() Method attaches window element to an event handler function and… [Read More]
jQuery keyup() Method
jQuery keyup() Method triggers the keyup event when any button on the keyboard is released. This method attaches an html element to event handler function,… [Read More]
jQuery keydown() Method
jQuery keydown() Method triggers the keydown event when any button on the keyboard is pressed down. Unlike keypress() Method which doesn’t consider keys such as… [Read More]
jQuery keypress() Method
jQuery keypress() Method triggers the keypress event when any button on the keyboard is pressed down. This method doesn’t consider keys such as ALT, CTRL,… [Read More]
jQuery change() Method
jQuery change() Method triggers the change event, when the value of an html element has been changed. The elements covered by this method are <input>,… [Read More]
jQuery submit() Method
jQuery submit() Method triggers the submit event when the form is submitted. The submit() method attaches an event handler function to the “form”, this event… [Read More]
jQuery blur() method
jQuery blur() method attaches an event handler function to html elements. This event handler function executes when a form field loses focus. This method works… [Read More]
jQuery focus() method
jQuery focus() method attaches an event handler function to html elements. This event handler function executes when a form field gets focus. jQuery focus() method… [Read More]