ExampleRemove the style attribute from all p elements:
Try it yourself » |
The removeAttr() method removes a specified attribute from the selected elements.
$(selector).removeAttr(attribute) |
Parameter | Description |
---|---|
attribute | Required. Specifies the attribute to remove |