Checked a checkbox when a row is being selected
Checked a checkbox when a row is being selected
nionta
Posts: 3Questions: 1Answers: 0
I have a checkbox in my table column, I want to checked the checkbox if my table row is being selected. how can I do that?
This discussion has been closed.
Answers
How are you selecting the row?
This example uses the Select Extension with checkboxes:
https://datatables.net/extensions/select/examples/initialisation/checkbox.html
Kevin
I want something like this:
https://www.gyrocode.com/projects/jquery-datatables-checkboxes/
also adding I am using inline editing.
Ok, you can use Gyrocode's checkboxes plugin. It uses the Select extension. Inline editing will work with Gyrocodes extension.
Kevin
You will want to exclude the checkbox column from inline editing like this example:
https://editor.datatables.net/examples/inline-editing/submitButton.html
Kevin
here is my code:
`
<
script>
$(document).ready(function()
{
I want a function that, if I click on a column for edit, the full row will be selected and also I want a invisible checkbox for marking if the row is being selected, so basically if I click on the editable column the corresponding checkbox will the checked. I want this function for update all the edited rows by click on single update button, can you help me here, how I can edit m code for this? and thank u.