If I have class .A and class .B and want to switch in between on button click, what’s a nice solution for that in jQuery? I still don’t understand how toggleClass() works.

Is there an inline solution to put it in onclick="" event?

7 Answers
7

Leave a Reply

Your email address will not be published. Required fields are marked *