Class Name Action
The Class Name Action adds or removes a CSS class name from an element.
- Target Element ID: the ID of the element whose class name is to be changed.
- Operation: specify whether to switch back and forth between two class names (or toggle one class name on and off, if a second class name is not specified), add a class name to the element, remove a class name from the element, or remove Class Name 1 and add Class Name 2 simultaneously. The difference between "toggle between" and "from/to" is that toggle will remove whichever class is currently applied, and add the other, while "from/to" always removes the first (if it is currently applied) and adds the second.
- Class Name 1/Class Name 2: the class name or names to be added or removed. Class Name 1 is always required. Class Name 2 is ignored for the "add" and "remove" operations.
- Maximum Times: the maximum number of times that this Action will execute before it ignores all future events. The counter resets when the page is reloaded. If set to a negative value, it will execute an unlimited number of times.