用jquery添加的html元素用jquery找不到了
用jquery添加的html元素用jquery找不到了
  $("#c1 table tbody tr").each(function(){               
                 $(this).live('click',function(){
                    alert($(this).html());
                 });
               });  
tr是用jquery的append()加的,不知道为什么这段代码不运行了
------解决方案--------------------确定tbody存在,tr添加成功正确。
------解决方案--------------------$("#c1 tr").each(function(){  
 $(this).live('click',function(){
 alert($(this).html());
 });
 });
------解决方案--------------------
光是看这段代码也是不行的,要能完整还原你所以描述的问题。