Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
    Bookmark Topic Watch Topic
  • New Topic

javascript DOM table

 
smart smart
Greenhorn
Posts: 4
  • 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
Posts: 42967
73
  • 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.
 
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic