|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (9 bit)
|
add a row to a table in javascript
Is there any way I can add a row to a table dynamically with javascript.
I would like to have a button who's onlick event adds an item to a table I tried generating this table in text and using innerHTML of a div tag and the tds don't work it's like it just puts all the text together. Is there anything I can do? TIA, Seth |
|
|
|
|
|
#2 |
|
Registered User
Join Date: Nov 2001
Posts: 1,965
|
check out this:
http://javascript.internet.com/misce...add-a-row.html |
|
|
|
|
|
#3 |
|
Member (9 bit)
|
I dont' mean to be ungrateful but is there a way to remove a row as well?
|
|
|
|
|
|
#4 |
|
Registered User
Join Date: Nov 2001
Posts: 1,965
|
code for adding, removing and renaming a row, taken from this page:
http://www.experts-exchange.com/Web/..._20781550.html PHP Code:
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|