why is serialize() not taking inputs from childcolumns in my code?

why is serialize() not taking inputs from childcolumns in my code?

eulokoeuloko Posts: 2Questions: 2Answers: 0

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

  • allanallan Posts: 63,891Questions: 1Answers: 10,530 Site admin

    The first example you link to uses $() which only gets the rows of the host table, not the child rows. You'd need to use row().child() to get the child row node, probably in combination with rows().every() to loop over all rows.

    Allan

This discussion has been closed.