..高分急求...Javascript在IE和Firefox的问题 Firefox 中 document.all可以么 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 Firefox 中 document.all不可以下面的两种都可以<script language="javascript"> function test() { alert(document.getElementById("TextBoxId")).value); } </script><input type="text" name="TextBoxId" value="aa" onchange="test()"> Firefox中对于 <span id="id">2</span>又要怎么取值呢 <input id="TextBoxId" value="aa">document.getElementById("TextBoxId").value<span id="spanid">2</span>document.getElementById("spanid").innerHTML Firefox中对于<span id="id">2</span>又要怎么取值呢document.getElementById("id").innerHTML 问题已解决,放分结果:meizz(梅花雪)大佬的答案正解<input id="TextBoxId" value="aa">document.getElementById("TextBoxId").value<span id="spanid">2</span>document.getElementById("spanid").innerHTML谢了. 如何把Javascrpit中实现的树效果的"+"号去掉 变量读取html内容 帧结构里页面相互操作的问题... 急!急!急! jsp页面、ssh框架、如何实现【用户注册时】用【DWR】验证用户名是否已存在 - -。 关于联动的问题,请高手们多帮忙,再现等待! 一个小问题!help 如何做综合查询,嵌套查询等类似于信息管理系统的前台代码 请教一个效率问题 会写病毒吗?这里需要你! 50分只问一个小问题! 难题,在firefox下,如何获取inputtext的值那?在线等 js中的RS 是什么意思,代表什么对象,请高人给介绍一下
function test() {
alert(document.getElementById("TextBoxId")).value);
}
</script>
<input type="text" name="TextBoxId" value="aa" onchange="test()">
<span id="id">2</span>
又要怎么取值呢
document.getElementById("TextBoxId").value<span id="spanid">2</span>
document.getElementById("spanid").innerHTML
<span id="id">2</span>
又要怎么取值呢document.getElementById("id").innerHTML
结果:meizz(梅花雪)大佬的答案正解<input id="TextBoxId" value="aa">
document.getElementById("TextBoxId").value<span id="spanid">2</span>
document.getElementById("spanid").innerHTML谢了.