Hi,
The dynamically created rows are appended at the end of the table i.e. after the last row of the table (found by table.rows.length)
and those individual <tr> contains 8 more <td>s carrying some texts and their respective text fields.
Now we have one such default <tr> , which also contains button for adding more row , onclick of which the addRow() function is called to create the dynamic row each time.
The code is created dynamically that's fine so far.
But when the form is submitted the default textfield's (from the default<tr>) values are found in the echo of post data but not other .
The same script works fine in IE and shows all the elements textfield's values in the textfield POST data along with the default one, after form submit echo.
network18
15
Practically a Master Poster
Banderson
29
Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.