function toggledDeleteAllBtn(){
if( $('.customer_checkbox:checked').length > 0){
$('#sel_button').text('Deleted all selected('+$('.customer_checkbox:checked').length+')');
}else{
$('#sel_button').text('Delete all selected');
}
}
<tr id="sid">
<th>ID</th>
<th>phone number</th>
<th>remarks</th>
<th>date</th>
<th></th>
<th><input type="checkbox" name="main-checkbox"></th>
<th><button class="btn btn-danger btn-sm" id="sel_button" name="sel_button" ><i class="glyphicon glyphicon-trash" id="trash_icon"></i>Delete all </button></th>
</tr>
请问如何将 iclass 中的图标垃圾添加到函数 toggleDeleteAllBtn() 中,以便无论进行什么更改,图标始终显示? (需要在toggleDeleteAllBtn()中进行一些修改)
谢谢!
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号