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 阅读(190) 评论(0)  编辑  收藏 所属分类: jQuery


只有注册用户登录后才能发表评论。


网站导航:
 
<2024年4月>
31123456
78910111213
14151617181920
21222324252627
2829301234
567891011

导航

统计

常用链接

留言簿(55)

随笔分类

随笔档案

文章分类

文章档案

搜索

最新评论

阅读排行榜

评论排行榜