Go Back   Gaming Gutter


» Site Navigation
» Home
» FAQ
» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Advertisement
» Recent Threads
Go to first new post Please help me....PC to...
11-30-2008 02:46 PM
Last post by Mrs. Morris
Today 05:57 AM
3 Replies, 34 Views
Go to first new post Ugggggggh!
Today 05:10 AM
Last post by Xenocide
Today 05:52 AM
1 Replies, 5 Views
Go to first new post 13mil Legit nps $7 per...
Yesterday 09:21 AM
by neopro
Last post by neopro
Today 05:28 AM
2 Replies, 14 Views
Go to first new post Are you the 2% or the...
05-28-2008 04:08 PM
by oneone
Last post by Angels_Halo
Today 05:02 AM
150 Replies, 1,801 Views
Go to first new post WTS: 119 Bahamut account
Today 05:01 AM
Last post by Nhylus95
Today 05:01 AM
0 Replies, 4 Views
View Single Post

 
Old 07-02-2008, 12:32 AM   #2 (permalink)
dyl1828
Underground

Male dyl1828 is offline
 
dyl1828's Avatar
 
Join Date: Feb 2007
Age: 15
Posts: 136
GPoints: 20
iTrader: 0 / 0%
dyl1828 Is gaining popularity
Rep Power: 6
Here you go,
Example: Example
Code:
<html>
<head>
<title>Test Page</title>
<script type="text/javascript">
function appendRow()
{
 var text= document.form.input.value;
 var button= '<input type="button" value="Delete" onclick="deleteRow(this.parentNode.parentNode.rowIndex)">'
 var tbody = document.getElementById("t1").getElementsByTagName("tbody")[0];
 var row = document.createElement("TR");
 var cell1 = document.createElement("TD");
 cell1.innerHTML = text;
 var cell2 = document.createElement("TD");
 cell2.innerHTML = button;
 row.appendChild(cell1);
 row.appendChild(cell2);
 tbody.appendChild(row);
}
function deleteRow(i){
    document.getElementById('t1').deleteRow(i)
}
</script>
</head>
<body>

<table id="t1" border="1">
<tbody>
</tbody>
</table>
<form name="form" id="form">
<textarea id="input" name="input"></textarea>
<input onclick="appendRow()" value="Add Item" type="button">
</form>

</body>
</html>
Hope you enjoy

P.S.
This code was tested and created on Firefox 2.0.0.14 with Javascript enabled
__________________
Trades Completed With Users On GG:
Dungeon_Master (gaiaonline<>neopets)

Last edited by dyl1828; 07-02-2008 at 12:33 AM.. Reason: forget information
 
 
Powered by vBadvanced CMPS v3.0 RC2

All times are GMT -7. The time now is 05:58 AM.


vBulletin skin developed by: eXtremepixels
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The contents of this webpage are copyright © 2006-2008 GamingGutter.com. All Rights Reserved.

Page generated in 0.06292295 seconds (100.00% PHP - 0% MySQL) with 18 queries