Losing added html to a cell when responsive is clicked

Losing added html to a cell when responsive is clicked

joeldevjoeldev Posts: 1Questions: 1Answers: 0

I ajax add comments to my DB when "Add comment" is clicked.
So I just prepend HTML to below the form that adds the comment. Pretty straightforward and works great. My issue is that when the plus/minus of the responsive is clicked. I lose any comments added. Pretty unfortunate, anyone know of why this is happening or the best solution? I'm pretty stuck here. Thanks in advance.

Answers

  • allanallan Posts: 61,650Questions: 1Answers: 10,094 Site admin

    How are you generating the child row - is it from Responsive? If so, then its because you haven't updated the row's data with the new comment(s) (row().data()).

    Allan

This discussion has been closed.