To remove a css class from an element, removeClass()
method can be used.
<script>
$("#div2").removeClass("class1");
</script>
Above code snippet will remove the class “class1” from the element whose id is “div2”.
Views: 4622 | Post Order: 35