Methods to remove attribute values in html: 1. Use the attr() method to set the specified attribute value to an empty string, with the syntax "$(element).attr("Attribute Name","")"; 2. , Use the removeAttr() method to remove the specified attribute, the syntax is "$(element).removeAttr("attribute name")".
The operating environment of this tutorial: windows7 system, jquery1.10.2&&HTML5 version, Dell G3 computer.
Remove the attribute value from html
1. Use the attr() method to set the specified attribute value to an empty string
2. Use the removeAttr() method to remove the specified attribute
Recommended tutorials:html video tutorial,jQuery tutorial(video)
The above is the detailed content of How to remove attribute value in html. For more information, please follow other related articles on the PHP Chinese website!