Remove the style attribute from all <p> elements:
The removeAttr() method removes one or more attributes from the selected elements.
| Parameter | Description |
|---|---|
| attribute | Required. Specifies one or more attributes to remove. To remove several attributes, separate the attribute names with a space |
Remove several attributes from the selected elements
How to remove the id and class attribute from the selected elements.
Your message has been sent to W3Schools.