.removeAttr()
methodThe .removeAttr()
method in jQuery is used to remove an attribute from every matched element.
.removeAttr()
method Syntax.removeAttr(attibuteName)
attibuteName
is an attribute (or multiple attributes separated by space in v1.7+) to remove.
.removeAttr()
method ExamplesIn this example, when the user clicks on button, the title of the input next to it would be changed. Move the mouse pointer over the text input to see the title.