File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
    Bookmark Topic Watch Topic
  • New Topic

javascript DOM table

 
smart smart
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
Dear java all:
if i have html table below:
<tr>
<td><input type="text" id="txt_1"></td>
<td><input type="text" id="txt_2"></td>
<td><input type="text" id="txt_3"></td>
</tr>

if i use DOM object to delete row two (id="txt_2"),it becomes:

<tr>
<td><input type="text" id="txt_1"></td>
<td><input type="text" id="txt_3"></td>
</tr>
then,how can i rearrange txt id? for example, change txt_3 to txt_2?

<tr>
<td><input type="text" id="txt_1"></td>
<td><input type="text" id="txt_2"></td>
</tr>

please help,thanks
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
You have been asked multiple times before to fix your display name, and have decided not to do that; the account is now closed.
 
    Bookmark Topic Watch Topic
  • New Topic