jQuery removeProp() Method
jQuery removeProp() Method
The removeProp() method is used to remove a property set by the prop() method. We cannot use this method to remove HTML attributes like style, id, etc. For this purpose, we have to use the removeAttr() method.
Syntax:-
Its syntax is:- $(selector).removeProp(property)
Further Explanation:-
Parameter | Description |
---|---|
property | Specifies the name of the property to remove |