Collect data using fnGetData for form created using fnAddData

Collect data using fnGetData for form created using fnAddData

getkgetk Posts: 2Questions: 1Answers: 0
edited December 2014 in Free community support

I'm trying to create a dynamic table by adding/deleting rows. Once these cells are created, I need to then collect the data from these "inputs"
I'm creating rows using:
$('table#myTable').dataTable().fnAddData( [ '<input type="text" id="first_name_' + count + '">', '<input type="text" id="last_name_' + count + '">' ] );

Sample in Plunker : http://plnkr.co/edit/wP0FujNj7I346DAcsSCL (output printed to console)
But instead of printing the actual value input into the text field, it is printing the "html" of the text field skeleton.
Currently it is printing
["<input type="text" id="last_name_0">"]
instead of what i expected to be the value within the field !!

How can i collect the data (rather than the actual html) ?

thanks in advance

This discussion has been closed.