I have a jQuery datatable which has only checkboxs in one column. How to implement a filter (drop down with checked
and uncheked
options) on that column which should filter and display rows with checked
/ unchecked
checkboxes on select of drop down?
Here is exactly what you want.Look at a working Jsfiddle!
You can use :
$('#rowclick2 tr').filter(':has(:checkbox:checked)').each(function() {
$tr = $(this);
$('td', $tr).each(function() {
// If you need the TD's
});
....
});
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.