为你而来

表单对象

document.forms[i].elements[j]

obj=document.getElementById('input');

obj.defaultValue

obj.disabled

obj.select();//this.select();选择文本

 

 

obj2=document.getElementById('select');

obj2.options[obj2.options.length]=new Option('text','value');

obj2.remove(index);//index是数字

obj2.selectedIndex

 

<input type='file'......onchange=>

form.elements[i]

 

obj3=div_obj.firstChild;

obj3.data='div标签内的文本';

 

posted on 2012-03-07 12:54  为你而来  阅读(125)  评论(0编辑  收藏  举报

导航