Home > Article > Web Front-end > How to remove css attributes in jquery
Jquery method to remove css attributes: 1. Use the css() method, the syntax format is "$(selector).css('property name','')"; 2. Use the remove() method, the syntax Format "$(selector).remove('class')".
The operating environment of this tutorial: windows7 system, jquery1.10.0 version, Dell G3 computer.
jquery removes css attributes
For deletion of css attributes in elements:
$.css('width','')
For the deletion of css attributes in the style style
$.remove('class')
Recommended related video tutorials: jQuery tutorial (video)
The above is the detailed content of How to remove css attributes in jquery. For more information, please follow other related articles on the PHP Chinese website!