File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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: 41101
    
  45
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
 
 
subject: javascript DOM table
 
Similar Threads
Requested Resource Not Found Error
s:textfield issue
why document.getElementById work with form elements
how to get multple text fields values in jsp
Need Help on HTML