这地方不能这么用
改成
document.getElementById("tableid"+[7*(bbb-1)+aaa]).innerText
改成
document.getElementById("tableid"+[7*(bbb-1)+aaa]).innerText
解决方案 »
- ext表格中嵌入选项卡
- jquery贪吃蛇之后另一js游戏新鲜出炉----坦克大战(散分)
- jQuery 里面 nextAll() 如何只取第一个出来,但总是报错。
- 弹出新页面,只能在新页面点操作了以后才能点原页面,怎么实现?
- 如何用js打开一个累死“另存为”的窗口,用户选择路径及文件名后,返回路径+文件名
- Nescape下输入长度校验问题。
- 免费的国际一级域名和100M支持ASP、CGI空间,快申请呀 [.Net空间]
- 如何将一个变量转换为 int整数类型?
- 关于easyui tree的问题
- hcharts svg 导入到excel生成图片
- 改变表格排序的问题
- 史...上...最...菜... textarea 怎么写 input形式的
下面是微软的MSDN上写的
getElementById Method Internet Development Index --------------------------------------------------------------------------------Returns a reference to the first object with the specified value of the ID attribute.SyntaxoElement = document.getElementById(sIDValue)
ParameterssIDValue Required. String that specifies the value of an ID attribute. Return ValueReturns the first object with the same ID attribute as the specified value.ResIf the ID value belongs to a collection, the getElementById method returns the first object in the collection.ExampleThis example uses the getElementById method to return the first occurrence of the ID attribute value, oDiv.<SCRIPT>
function fnGetId(){
// Returns the first DIV element in the collection.
var oVDiv=document.getElementById("oDiv1");
}
</SCRIPT>
<DIV ID="oDiv1">Div #1</DIV>
<DIV ID="oDiv2">Div #2</DIV>
<DIV ID="oDiv3">Div #3</DIV>
<INPUT TYPE="button" VALUE="Get Names" onclick="fnGetId()">