vikash kumar Nov 21, 2022 548 Views
java script
<
div
id
="productListDiv"
class
="row">
="no-more-tables"
="col-sm-12">
table
="table">
thead
="tbl-head">
tr
>
th
input
="cbSelectAll"
type
"checkbox" />
label
for
="cbSelectAll">
/
ID
NAME
ADDRESS
tbody
="tblBody"
td
<input id="cbSelect1" type"checkbox" /> <label for="cbSelect1"></label>
="cbSelect1"
="cbSelect1">
1
Vikash Kumar
Gurgaon
<input id="cbSelect2" type"checkbox" /> <label for="cbSelect2"></label>
="cbSelect2"
="cbSelect2">
2
Amit Kumar
Delhi
script
="text/javascript">
function
checkUncheckAllCheckboxes() {
var
headerCheckbox = document.getElementById(
'cbSelectAll'
)
isChecked =
false
;
isChecked = headerCheckbox.checked;
table = document.getElementById(
'tblBody'
);
if
(table !=
null
) {
Inputs = table.getElementsByTagName(
"input"
(i = 0; i < Inputs.length; i++) {
(Inputs[i].type ==
'checkbox'
document.getElementById(Inputs[i].id).checked = isChecked;
}
Jan 29, 2023
Nov 22, 2022
Nov 21, 2022