The Daily Static
  The Daily Static
UF Archives
Register
UF Membership
Ad Free Site
Postcards
Community

Geekfinder
UFie Gear
Advertise on UF

Forum Rules
& FAQ


Username

Password


Create a New Account

 
 

Back to UserFriendly Strip Comments Index

Can I ask for a little HTML Table DOM help? by Sieldan 2007-04-06 08:13:12
I cant figure out the syntax on this. Ive got a table "productout". That table has a set number of rows in it, each with their own ID. What I want to do is to step thru the table and get the row id, then delete the row, the recreate the row, and reassign the its ID. Deleting, recreating, and re id'ing Ive got handled. Im having trouble getting the ID to begin with.

Here is the line where I try to pull the id:
rowID=document.getElementById('productout').rows[rowCount].id;

Is that right? Or what am I doing wrong?

Thanks for any help.
Sieldan
[ Reply ]
  TR doesn't have an "id" I don't think.. by SlyW2007-04-06 09:38:18
    tr *does* have id, but it'd serve no purpose here. by kahuana2007-04-06 09:52:25
      Mea Culpa by SlyW2007-04-06 10:24:48
        *shrug* I had to look it up :-) (n/t) by kahuana2007-04-06 11:28:19

 

[Todays Cartoon Discussion] [News Index]

Come get yer ARS (Account Registration System) Source Code here!
All images, characters, content and text are copyrighted and trademarks of J.D. Frazer except where other ownership applies. Don't do bad things, we have lawyers.
UserFriendly.Org and its operators are not liable for comments or content posted by its visitors, and will cheerfully assist the lawful authorities in hunting down script-kiddies, spammers and other net scum. And if you're really bad, we'll call your mom. (We're not kidding, we've done it before.)