javascript在取checkbox时语句在Firefox不兼容 为什么不直接用document.getElementById("vid")呢? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 document.getElementById("vid")试了不可以其中html为:<input type="radio" name="Vid" id="Vid" value = "$str"> 为了兼容多种浏览器,建议楼主用:document.getElementById("ID");document.getElementsByTagName("tagname");如果要访问对象的属性,建议document.getElementById("ID").getAttribute("attibutename");设置或者修改对象属性document.getElementById("ID").setAttribute("attibutename","new value"); LZ如果document.getElementById("vid")不行那用document.getElementById("Vid") 修正一下我刚才发的帖子在IE下:document.getElementById("ID").setAttribute("attibutename","new value");似乎不怎么起作用换一种做法:document.getElementById("ID").style.attibutename = "new value";o(∩_∩)o... 建议楼主用: document.getElementById("ID"); document.getElementsByTagName("tagname"); 输入框 请问如何给函数返回的对象赋值? 高手请进,菜鸟碰到项目难题了:求根据XML生成动态的表格,表格的列是动态且嵌套,分不够再加的 请问哪里有用javascript+HTML的像TreeView的控件下载? 为什么会乱码呢... 为什么window.onresize会触发好几次? window.open 窗口关闭问题 能否让最小化的或不是当前窗口的网页窗口在任务栏中闪烁? 这种分页控件如何实现? autocomplete控件和jqweui控件冲突的问题 onmouseover延迟执行的问题 javascript怎么实现只刷新一部分的功能?
其中html为:<input type="radio" name="Vid" id="Vid" value = "$str">
document.getElementById("ID");
document.getElementsByTagName("tagname");如果要访问对象的属性,建议
document.getElementById("ID").getAttribute("attibutename");设置或者修改对象属性
document.getElementById("ID").setAttribute("attibutename","new value");
那用document.getElementById("Vid")
在IE下:document.getElementById("ID").setAttribute("attibutename","new value");
似乎不怎么起作用
换一种做法:document.getElementById("ID").style.attibutename = "new value";
o(∩_∩)o...
document.getElementsByTagName("tagname");