pQuery\IQuery::toggleClass PHP Method

toggleClass() public method

Add or remove one or more classes from each element in the set of matched elements, depending on either the class’s presence or the value of the switch argument.
public toggleClass ( string $classname, $switch = null )
$classname string
    function toggleClass($classname, $switch = null);