Tutorialsplane

jQuery removeAttr Method


jQuery removeAttr method : The primary use of the removeAttr method is used to remove attribute from the html element. Below is simple example with demo and online editor.


jQuery removeAttr Method Syntax

Here is syntax to remove attributes from html elements.

$(selector).removeAttr('attr_name');

attr_name: It is name of attribute which you want to remove.

jQuery removeAttr Method Example

Here is an example of jQuery remove Attribute method-

jQuery removeAttr() Method โ€“ Example โ€“


Try it ยป

This will produce the following output โ€“

Note : This is screenshot of the output. To run this demo click on the above Try it button.

Jquery Tutorial

jQuery Effects

jQuery Traversing

jQuery HTML

jQuery Css

jQuery Scroll

jQuery Dimensions

jQuery Ajax