jquery 移除标签的某个属性

jQuery 提供了移除元素属性的方法,".removeAttr( String attributeName )”。attributeName是要移除的属性;

从1.7版本开始,可以是空格分隔的多个属性.

例:

移除 a 标签的title属性:

$("a").removeAttr("title");

原文地址:https://www.cnblogs.com/zhaoqiangxiaoxiao/p/3412473.html