JavaScript Tutorial for Beginners


#47 JQuery DOM Manipulations Part 4


Hide/Show description

Support by becoming a Member: https://www.youtube.com/channel/UC59K-uG2A5ogwIrHw4bmlEg/join jQuery contains powerful methods for changing and manipulating HTML elements and attributes. One very important part of jQuery is the possibility to manipulate the DOM. jQuery comes with a bunch of DOM related methods that make it easy to access and manipulate elements and attributes. Three simple, but useful, jQuery methods for DOM manipulation are: addClass() - Adds one or more classes to the selected elements removeClass() - Removes one or more classes from the selected elements toggleClass() - Toggles between adding/removing classes from the selected elements css() - Sets or returns the style attribute Video by - Tanmay Sakpal Simple Snippets Channel link - https://www.youtube.com/simplesnippets