why is serialize() not taking inputs from childcolumns in my code?
why is serialize() not taking inputs from childcolumns in my code?
I am trying to get all the inputs of my datatables(https://datatables.net/examples/api/form.html) but apparently it only gets the inputs of the normal columns and not of the child columns(https://datatables.net/examples/api/row_details.html). Is there a reason why it wouldn't take checkboxes that I created in my childcolumns? How can I fix this?
I just have the same code as the 2 examples but combined and checkboxes added to the format. It just wont return the inputs from the childcolumns I just cant figure out why and how to fix it.
Answers
The first example you link to uses
$()
which only gets the rows of the host table, not the child rows. You'd need to userow().child()
to get the child row node, probably in combination withrows().every()
to loop over all rows.Allan