jQuery Intro

jQuery Intro Quiz

jQuery Intro Exercise

jQuery Basic

jQuery Basic Quiz

jQuery Basic Exercise

jQuery Advance

jQuery Advance Quiz

jQuery Advance Exercise

jQuery Selectors

jQuery Effects

jQuery Events

jQuery Methods and Properties

jQuery Traversing

jQuery CSS and HTML Methods

removeClass() in jQuery

removeClass() Method



The removeClass() method is used to remove one or more classes from the selected elements. To specify multiple classes within the removeClass() method, just separate them using spaces like removeClass(class1 class2 class3).





Its syntax is:- $(selector).removeClass(classname, function(index, currentclass))


Further Explanation:-


Parameter Description
classname Optional. Specifies one or more class names to remove.
function(index,currentclass) Optional. A function that returns one or more class names to remove
  • index - Returns the index position of the element in the set
  • currentclass - Returns the current class name of selected elements

Code Explanation

All Tutorials related to jQuery Basic

All Sections related to jQuery