You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
maxkfranz edited this page Nov 28, 2011
·
2 revisions
ele.removeClass()
Remove a class from the element.
ele.removeClass( className )
className : A space-separated list of classes to remove from the element
Details
If the element does not have a class, then calling ele.removeClass() has no effect.
Examples
varn1=cy.node("n1");n1.addClass("foo");// classes: foon1.removeClass("bar");// classes: foo (i.e. this line has no effect)n1.removeClass("foo");// no classes left