Topic: Appending table row - previous values are deleted
I have this table in HTML:
<table style="width: 100%;" class="allBorders">
And using XAJAX I append new ROW like THIS
$uniqueID = time();
$return = "<tr id='articles_".$uniqueID."'>";
$return .= "<td><input type='text' id='v_$uniqueID' name='v' /></td>";
$return .= "</tr>";
$objResponse->append("added_articles", "innerHTML", $return);
Whenever I add new line all values in previously added lines are cleared..
- 1st line is added
- value in 1st line is set to "TEST"
- 2nd line is added and value in 1st line is deleted .. .