私は以下のようにjavascript関数を持っています。
$("#update").click(function (){
this.disabled = true;
$("#kwBody > tr").each(function() {
var $cells = $(this).children("td");
var found=false,count=0,currentCell;
for (var i=0;i<masterData.length;i++) {
currentCell=$cells.eq(i+1);
found = parseInt(currentCell.text(),10) >=masterData[i];
currentCell.toggleClass("found",found); //add or remove class to highlight
count+=found;
}
window.console && console.log(masterData,count);
$(this).toggle(count==masterData.length); // show if all cells >
});
});
});
$("slider:changed")
値を更新するためのボタンをクリックすると、ボタンを無効にしようとしています。ただし、ページネーションを使用しているため、2 番目のページに移動すると、ボタンが再び有効になります。すべてのページで無効にしておく方法はありますか?
これまでの私の作品へのリンクです。