Newer Version Available
removeClass()
Signature
removeClass(Object element, String newClass)
Parameters
- element
- Type: Object
- The component to remove the class from.
- newClass
- Type: String
- The CSS class to be removed.
Sample Code
1//find a component with aura:id="myCmp" in markup
2var myCmp = component.find("myCmp");
3$A.util.removeClass(myCmp, "myClass");