我正在使用bootstrap切换并切换所有按钮。该按钮将切换当前分页页面中的所有内容。但是不会切换其他页面上的项目。如何让它切换表格中的每一行?这是我正在使用的JS。
table.on('draw', function() {
$('.js-bs-toggle').bootstrapToggle({
on: 'Yes',
off: 'No'
});
});
$('.js-toggle-all').on('click', function() {
$('.js-bs-toggle').bootstrapToggle('toggle');
})