我使用的是桌面jquery插件,我遇到了一點麻煩。jQuery TableSort插件
我有一個表有10列,我有一個過濾器,如果我解開一個盒子,使用CSS display:none
從表中刪除相關的列。
這一切工作正常,但是當我然後使用分頁時,這些細節然後顯示。
看來,表分揀機插件relaods表數據並顯示所有行,即使它們被設置爲display:none
是否存在,如果這些列未顯示/隱藏的方式,那麼當尋呼觸發這些不顯示?
感謝
編輯:
$("#searchContainer #toggleOptions ul li a").on(
{click: function()
{
//detect classes
var currentButtonCnt = $(this).parent().attr("class");
var currentState = $(this).attr("class");
//remove _btn
currentButton = "."+currentButtonCnt.substr(0, currentButtonCnt.length-4);
var ids = [];
//toggle
if(currentState == "ticked"){
$(currentButton).hide();
$(this).removeClass('ticked')
}else{
$(currentButton).show();
$(this).addClass('ticked')
}
}
}//end click
)
我已經修改我的問題與執行刪除列的代碼。我不知道如何將代碼添加到下一個/上一個按鈕 –
已更新的答案。 – projeqht
嗨。感謝那。我現在遇到的問題是,在控制檯中出現以下錯誤:'TypeError:currentButtonCnt is undefined' –