Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Toggles (adds or removes) the specified class on all the elements in the collection. If the class is present, it is removed; if it is absent, it is added.
Syntax
var queryCollection = queryCollection.toggleClass(name);
Parameters
name
Type: stringThe name of the class to be toggled.
Return value
Type: QueryCollection
This QueryCollection object.
Requirements
Minimum WinJS version |
WinJS 1.0 |
Namespace |
WinJS.Utilities |