Find row position in table

hi everybody,
I having problem in inserting a row. i want to insert row just above the position a ADDMORE button which is placed somewhere in a table but that button is not placed at the bottom. below that button there are other rows also.
i am using javascript for this the code is given below

[COLOR=“Blue”]var boutonInserer = document.getElementById(“addmore”);
var TdBarreBouton2 = boutonInserer.parentNode;

		var tbl = document.getElementById(tableID);
		var lastRow = tbl.rows.length;
		var x=document.getElementById(tableID).insertRow(TdBarreBouton2)
		var y=x.insertCell(0)
		var z=x.insertCell(1)
		var a=x.insertCell(2)
		var hi = 1;
		y.innerHTML="<input type='text' name='delete' value='text'>"
		z.innerHTML="<input type='text' name='delete' value='text'>"
		a.innerHTML="<input type='button' name='delete' value='text' >"[/COLOR]

this code will a row at the top of the table when ADDMORE button is clicked.
some please help me to solve the problem

hello
please could you tell me in detail

Then why do you post your question in the PHP forum? :shifty: