ClassList::remove

The remove() method removes the specified class name(s) from the element's class list.

Description

public ClassList::remove(string $value): static

Parameters

value

The class name to be removed from the element. If the class name is not found, the class list remains unchanged.

Return Value

Returns the current instance (static), allowing for method chaining.

Exceptions

None

Source Code
If you find this project useful, consider leaving a on GitHub! Thank you!