toggleClass

Function Description
Takes one or two parameters. For one parameters, it toggles given class. For two parameters, it toggles given classes.
Function prototype
toggleClass(class1,class2). Changes class1 with class2 if class2 is defined. Otherwise, adds or removes class1.
Function parameters
@class1 - dom class attribute value
@class2 - dom class attribute value
Sample HTML DIV element is given to try UPJS function.
Blue
Code area to try out toggleClass function.