Reputation: 687
I tried $(document).removeClass("myClassname")
but it doesn't seem to work.
Upvotes: 9
Views: 15493
Reputation: 69905
I think you are looking for this. It will select all the elements with class myClassname
and remove that class for those elements.
$('.myClassname').removeClass('myClassname');
Upvotes: 9
Reputation: 13483
$(".myClassname").removeClass("myClassname")
$(".myClassname")
will match all elements that have the class myClassname
.
Upvotes: 48