This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply locked New topic

javascript DOM table

smart smart

Joined: May 29, 2008
Posts: 4
Dear java all:
if i have html table below:
<td><input type="text" id="txt_1"></td>
<td><input type="text" id="txt_2"></td>
<td><input type="text" id="txt_3"></td>

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

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

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

please help,thanks
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 41089
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
It is sorta covered in the JavaRanch Style Guide.
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