How To Remove CSS Class Using jQuery

jqueryTo remove CSS class using jQuery, you only need to use removeClass method.  In the sample code given below, we are removing CSS class myStyle from DIV element using function divClass().

<!DOCTYPE html>
<title>jQuery Tutorial </title>

<script src=""></script>

<!-- CSS Class --> 
<style type="text/css">
    font-weight: bold;    
 <!-- jQuery Code to remove CSS Class -->
<script type="text/javascript">
 function divClass(){

<input type="button" value="Remove Class" onclick="divClass()"/>
<br />
<br />
<div id="divHello" class="myStyle">
Hello World!