js jquery分别如何操作table里的tr,td

[复制链接]
查看11 | 回复3 | 2011-7-27 16:38:45 | 显示全部楼层 |阅读模式





用JS和JQUERY怎么获得table表中第1个tr;td;label
我想要的结果是用 children(),chidNode,firstchild这种来实现..

回复

使用道具 举报

千问 | 2011-7-27 16:38:45 | 显示全部楼层
JQuery $('tr').first()JS
var trs=document.getElementByTagName('TR');第一个trs[0]...
回复

使用道具 举报

千问 | 2011-7-27 16:38:45 | 显示全部楼层
jsdocument.getElementById("Label1").valuejquery$("#Label").val()...
回复

使用道具 举报

千问 | 2011-7-27 16:38:45 | 显示全部楼层
你要怎么操作,想要什么效果?...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行