我有一個腳本,使表響應(腳)。這對我的需求非常好,但我使用了一些ajax來引入更多的表格行,但腳本不會影響這些新行。刪除影響JQuery腳本?
我試圖在我的ajax完成後重新啓動腳本,但它不起作用。
我的問題是,我可以刪除影響jquery,以便我可以在數據加載後重新應用它?
我的jQuery:
jQuery(document).ready(function ($) {
table();
$('#moreevent').click(function(){
var last = $('#the-event tr').length;
$.ajax({
type: "POST",
url: "ajax.php",
data: { levent: last }
}).done(function(data) {
$('#the-event').append(data);
cardbox();
table();
});
return false;
});
});
function cardbox(){
jQuery('.e-info-more-cont').hide();
jQuery('.e-info-more').mouseover(function(){
jQuery(this).css({"z-index":"1001"});
jQuery(this).nextAll(".e-info-more-cont").show();
}).mouseout(function(){
jQuery(this).nextAll(".e-info-more-cont").hide();
jQuery(this).css({"z-index":""});
});
}
function table(){
jQuery('.footable').footable();
}
已知問題:https://github.com/bradvin/FooTable/issues/32 – 2013-03-19 15:50:41
啊,這就是問題所在。我想你沒有找到解決辦法嗎? – jhodgson4 2013-03-19 15:58:31