Is there a build in way to "Rotate" a list of classes in JQuery similar to toggle class?
For example:
$("#MyElt").rotateClass("Cl1 Cl2 Cl3");
$("#MyElt").rotateClass("Cl1 Cl2 Cl3");
$("#MyElt").rotateClass("Cl1 Cl2 Cl3");
$("#MyElt").rotateClass("Cl1 Cl2 Cl3");
The status of the class on MYElt after each call would be:
Cl1
Cl2
Cl3
NO CLASS