The add()
method adds the specified class name(s) to the element's class list.
Description
public ClassList::add(string $value): static
Parameters
value
The class name to be added to the element. If the class already exists in the class list, it will be ignored.
Return Value
Returns the current instance (static
), allowing for method chaining.
Exceptions
None