5D艺术网首页
商城
|
资讯
|
作品
|
博客
|
教程
|
论坛
登录
注册
加为好友
发短消息
来自:
性别:秘密
最后登录:2009-03-18
http://jybbh.5d.cn/
首页
|
新闻
|
话题
|
博客
|
相册
|
艺术作品
|
社交关系
|
留言板
|
社交圈
2005/05/16 | form的各个属性
类别(WEB相关)
|
评论
(0)
|
阅读(51)
|
发表于 22:19
<script language="javascript">
//这个循环实现了原先document.all.formN.id="hoho"; 想要做的事情
for(var i=0;i<document.all.formN.attributes.length;i++){
if(document.all.formN.attributes[i].name == "id"){
//alert(document.all.formN.attributes[i].name);
document.all.formN.attributes[i].value = "hoho";
}
}
hoho.submit();
</script>
document.all.formN.getAttributeNode("id")
document.all.formN.setAttribute("id","hoho")
0
评论
Comments
日志分类
首页
[252]
Ken的日志
[63]
工作心得
[3]
编程相关
[28]
潮汕文化
[4]
计算机相关
[28]
WEB相关
[84]
JAVA相关
[20]
Eclipse相关
[7]
Tomcat相关
[1]
SQL
[14]