qileilove

blog已经转移至github,大家请访问 http://qaseven.github.io/

jQuery 属性操作 - removeAttr() 方法

jQuery 属性操作参考手册

实例

从任何 p 元素中移除 id 属性:

$("button").click(function(){   $("p").removeAttr("id"); }); 

亲自试一试

定义和用法

removeAttr() 方法从被选元素中移除属性。

语法

$(selector).removeAttr(attribute)
参数描述
attribute必需。规定从指定元素中移除的属性。

jQuery 属性操作参考手册

posted on 2014-04-10 14:01 顺其自然EVO 阅读(195) 评论(0)  编辑  收藏 所属分类: jQuery

<2025年4月>
303112345
6789101112
13141516171819
20212223242526
27282930123
45678910

导航

统计

常用链接

留言簿(55)

随笔分类

随笔档案

文章分类

文章档案

搜索

最新评论

阅读排行榜

评论排行榜