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.

Syntax

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

Add Class in p element using jQuery.

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