I have an empty table to which I\'m adding rows via jQuery using:
$(\'#table > tbody:last\').append(\'\' + s 4条回答 不思量自难忘° (楼主) 2021-02-12 21:09 You have to use the .on method $("#table").on('click','tr',function(e) { alert($(this).attr('id')); }); 0 讨论(0) 查看其它4个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复 热议问题
You have to use the .on method
.on
$("#table").on('click','tr',function(e) { alert($(this).attr('id')); });