aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes javascript DOM table Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply locked New topic
Author

javascript DOM table

smart smart
Greenhorn

Joined: May 29, 2008
Posts: 4
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
Marshal

Joined: Mar 22, 2005
Posts: 42264
    
  64
You have been asked multiple times before to fix your display name, and have decided not to do that; the account is now closed.


Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: javascript DOM table