【发布时间】:2011-04-24 15:09:50
【问题描述】:
我有两张桌子,我想在一张桌子上有更改事件。 那就是当我单击第一个表时,我想对第二个表进行一些更改。但不知何故,下面的更改功能不起作用。有什么建议吗?
$("#history_table table:eq(0)").click(function(){
$("#history_table table:eq(1) thead tr th:nth-child(1)").html("New");
});
$("#history_table table:eq(1) thead tr th:nth-child(1)").change(function() {
alert('Handler for .change() called.');
});
这里的history_table 是一个div 标签id,它有两个表。 click() 函数正在工作,但我也希望看到警报消息,但这没有显示。
【问题讨论】:
标签: jquery-plugins jquery jquery-selectors