jQuery Tutorial Tutorials - jQuery .removeAttr() method

jQuery .removeAttr() method

The .removeAttr() method in jQuery is used to remove an attribute from every matched element.

jQuery .removeAttr() method Syntax

.removeAttr(attibuteName)

attibuteName is an attribute (or multiple attributes separated by space in v1.7+) to remove.

jQuery .removeAttr() method Examples

In 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.

Try now

Date:2019-08-19 15:42:43 From:www.Lautturi.com author:Lautturi