how to uncheck check boxes in datatable when dropdown onchange event ?
how to uncheck check boxes in datatable when dropdown onchange event ?
prasadhari009
Posts: 28Questions: 7Answers: 0
please see img
This discussion has been closed.
Answers
Without seeing what you are doing in Javascript its hard to give a specific answer. You can use the jQuery prop() method as documented here.
If you still need help please provide a running test case with an example of your solution so we can provide a more specific answer.
https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case
Kevin
If I deselect building options then automatically datatable check boxes should uncheck
This is my issue
So how can we get checkbox ids of datatable dynamically and how can we write prop in onchange event
Probably the best option is to use
cell().node()
to get the HTML node for the column with the checkbox. Use jQuery find() to find the checkbox followed by jQuery prop() to uncheck. This example usescells().every()
to loop all the cells in the column with the checkbox.http://live.datatables.net/pabewumi/1/edit
Kevin