jQuery removeClass()

jQuery removeClass() method remove one or more class to the matched elements.To remove more than one class use separate class name with spaces.

If no parameter is specified in removeClass() method,It will remove All class names from the matched elements.


jQuery.removeClass(className) jQuery.removeClass(className className2 className3)

Add Class in p element using jQuery.

<!DOCTYPE html>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"> </script>
<title>jQuery removeClass() Example </title>
<style type="text/css">
    color: LawnGreen;
<p class="myClass" >Hello, Friends how are you ? </p>
<input type="button" value="Remove Class" id="removeClass">
$("#removeClass").click(function () {
$("p").removeClass( "myClass" );