Removing Attribute in JQuery
Removing Attributes
We can easily remove any attribute with the help of jQuery. The removeAttr() method is used for removing any attribute of an element.
Syntax:-
Its syntax is:- $(selector).removeAttr(attribute)
Further Explanation:-
Parameter | Description |
---|---|
attribute | Required. Specifies one or more attributes to remove. |
Code Explanation
All Tutorials related to jQuery Basic
Attributes
Removing Attributes
Content Manipulation
val() Method
append() and prepend()
after() and before()
addClass() Method
removeClass() Method
toggleClass() Method
css() Method
width() and height()