December 18, 2015
How To Remove CSS Class Using jQuery
To 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> <html> <head> <title>jQuery Tutorial </title> <script src="http://code.jquery.com/jquery-latest.js"></script> <!-- CSS Class --> <style type="text/css"> .myStyle { background-color:red; color:white; font-weight: bold; } </style> <!--