| 1 |
# removeClass |
| 2 |
|
| 3 |
```php |
| 4 |
removeClass ( [ mixed $class = null ] ) |
| 5 |
``` |
| 6 |
|
| 7 |
| Parameter | Description |
| 8 |
| --------- | ----------- |
| 9 |
| `class` | Specifies one or more class names to be removed. |
| 10 |
|
| 11 |
Removes one or more class names from the current node. |
| 12 |
|
| 13 |
**Remarks** |
| 14 |
|
| 15 |
* To remove more than one class, separate the class names with space or provide them as an array. |
| 16 |
* If no parameter is specified, this method will remove all class names from the current node. |
| 17 |
|
| 18 |
**Examples** |
| 19 |
|
| 20 |
```php |
| 21 |
$node->removeClass('hidden'); |
| 22 |
$node->removeClass('article important'); |
| 23 |
$node->removeClass(array('article', 'new')); |
| 24 |
$node->removeClass(); |
| 25 |
``` |