i have serious problem. I'm trying to make datagrid like this one - , but i dont understand how i can in table row make form of all cells.
Code:
roomRow[0].innerHTML =
'<input class="editName" type="text" name="name" '+
'value="' + roomRow[0].innerHTML + '">';
roomRow[1].innerHTML =
'<input class="editName" type="text" name="n" ' +
'value="' + roomRow[1].innerHTML + '">';
i change value for each row's cells. I tried to put <form> in first cell and </form> in last, but there is no allowed syntax:
<td>
<form>
</td>
<td>
</form>
</td>
any suggestions?
Code:
roomRow[0].innerHTML =
'<input class="editName" type="text" name="name" '+
'value="' + roomRow[0].innerHTML + '">';
roomRow[1].innerHTML =
'<input class="editName" type="text" name="n" ' +
'value="' + roomRow[1].innerHTML + '">';
i change value for each row's cells. I tried to put <form> in first cell and </form> in last, but there is no allowed syntax:
<td>
<form>
</td>
<td>
</form>
</td>
any suggestions?