jQuery removeClass Method
jQuery removeClass Method : is used to remove the classes from the selected elements.
Syntax : jQuery removeClass Method
$(selector).removeClass(classname,function(index,currentClassName));
index: (Interger) Index of the current element in the current set.
currentClassName(String)Current Class name in the matching set.
jQuery removeClass() Method Example 1
<script type="text/javascript"> $(document).ready(function(){ $( "#removeClassExample" ).on( "click", function(event) { $("#removeClass").removeClass('myclass'); }); }); </script> |
Advertisements