vikash kumar Nov 21, 2022 741 Views
jquery
<
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
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">
$(document).ready(
function
() {
$(
'[id*=cbSelectAll]'
).click(
if
($(
this
).is(
':checked'
))
'table [id*=cbSelect]'
).prop(
'checked'
,
true
)
else
false
});
Jan 29, 2023
Nov 22, 2022
Nov 21, 2022