Quantcast
Channel: DataTables 1.9 — DataTables forums
Viewing all articles
Browse latest Browse all 1816

Select all checkboxes in current page

$
0
0
Hi there,

This is my code
			var oTable=$("table#da-list").dataTable({
				sPaginationType: "full_numbers",
				"bStateSave": true,
				"aoColumns":[
					{"bSortable":false},
					null,null,null,null,
					{"bSortable":false}

				]
			});
			var nodes=oTable.fnGetNodes();
			$("#checkbox-main-header").click(function(){
				if($(this).is(":checked")){
					$('.checkbox-tr',nodes).attr("checked",true);
				}else{
					$('.checkbox-tr',nodes).attr("checked",false);
				}
			});
But this modifies checkboxes in all pages. How can i select only the ones in the current page?

Thanks

Viewing all articles
Browse latest Browse all 1816

Trending Articles