Jquery

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

jQuery removeClass() Method

jQuery removeClass() Method

 

 

The removeClass() method is used to remove one or more class names from the selected elements. If no parameter is specified, it will remove ALL class names from the selected elements.

 

Syntax:-

 

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 CSS and HTML Methods

All Sections related to Jquery