jQuery > Attribute related method

.removeAttr() - Remove attribute from element in jQuery

How to remove an attribute from an element in jQuery?

To remove an attribute from the html element, removeAttr() can be used.


Above code snippet will remove the style attribute from html element whose id is “div4”.

 Views: 5495 | Post Order: 36

Write for us

Hosting Recommendations