Hello, I have one question again
i created one table again and in this table i added some another options
for ex at the previous table there were only one problem sum of the dynamically added rows
in this beside sum i need to sum of the tax
for ex: in column1 i added 300 and into 2-nd column i Chose 10%

i would like when i chose from drop down box 10% Let in the 2-nd column appear 10% of the value which i addee first column
for ex 10% of this dynamically added rows
for ex. i added ten rows and i entered different values into these rows. in front of each row there are different option of percent selection.
in row1 i added 1000 and chose from drop down box 10% Let in 2-nd column appear 100
in row2 i added 2500 and chose from drop down box 30%
.................................................. ...........
and so on
and finally i counted separately sum of the values and other texbox value i sum percentage of this values
if possible help me
thanks beforehands
here is code

Expand|Select|Wrap|Line Numbers

<html><head><title>dinamik sheet</title>

<script>

function addrow(){

var tbl=document.getElementById('sheet');

var lastrow=tbl.rows.length;

var iteration=lastrow;

var row=tbl.insertRow(lastrow);

var cellLeft=row.insertCell(0);

var textNode=document.createTextNode(iteration);

cellLeft.appendChild(textNode);

var cellRight=row.insertCell(1);

var el=document.createElement('input');

el.type='text';

el.name='txtRow'+iteration;

el.size=40;

el.setAttribute('sumMe',"1");

cellRight.appendChild(el);

var cellRight2=row.insertCell(2);

var el1=document.createElement('input');

el1.type='text';

el1.name='txtRowe'+iteration;

el1.size=40;

el1.setAttribute('sumMe',"1");

cellRight2.appendChild(el1);

var cellRightsel=row.insertCell(3);

var sel=document.createElement('select');

sel.name='selRow'+iteration;

sel.options[0]=new Option('10%','value0');

sel.options[1]=new Option('20%','value1');

sel.options[2]=new Option('30%','value2');

cellRightsel.appendChild(sel);

var cellRightsel2=row.insertCell(4);

var sel1=document.createElement('input');

sel1.type='button';

sel1.value='sum row'+iteration;

sel1.name='button'+iteration;

cellRightsel2.appendChild(sel1);

}

</script>

<script>

function sum(){

var form=document.getElementById('eval_edit');

if(!form) return;

var fields=form.getElementsByTagName('input');

var s=0;

for (var i=0;i<fields.length;i++){

if( fields[i].getAttribute('sumMe') != "1" ) continue;//reject any field not carring the "sumMe" attribute

just i worked around it but table head column goes to the right when clicked add button
and one thing i would like to learn when updated left column according to it right column let automatically changes
thanks very much

Expand|Select|Wrap|Line Numbers

<html><head><title>dinamik sheet</title>

<script>

function addrow(){

var tbl=document.getElementById('sheet');

var lastrow=tbl.rows.length;

var iteration=lastrow;

var row=tbl.insertRow(lastrow);

var cellLeft=row.insertCell(0);

var textNode=document.createTextNode(iteration);

cellLeft.appendChild(textNode);

var cellRight=row.insertCell(1);

var el=document.createElement('input');

el.type='text';

el.name='txtRow'+iteration;

el.size=40;

el.setAttribute('sumMe',"1");

el.onBlur=sum;

cellRight.appendChild(el);

var cellRight1=row.insertCell(2);

var el1=document.createElement('input');

el1.type='text';

el1.name='txtRowe'+iteration;

el1.size=40;

el1.setAttribute('sumMe1',"1");

el1.onBlur=sum1;

cellRight.appendChild(el1);

var cellRightsel=row.insertCell(3);

var sel=document.createElement('select');

sel.name='selRow'+iteration;

sel.options[0]=new Option('10%','10');

sel.options[1]=new Option('20%','20');

sel.options[2]=new Option('30%','30');

sel.onchange=function(){ Percent(this); }

cellRightsel.appendChild(sel);

}

</script>

<script type="text/javascript">

function sum(){

var form = document.getElementById('eval_edit');

if(!form) return;

var fields = form.getElementsByTagName('input');

var s = 0;//sum value

for(var i=0; i<fields.length; i++){

if( fields[i].getAttribute('sumMe') != "1" ) continue;//reject any field not carring the "sumMe" attribute

var txt = fields[i].value;

if(txt != ( '' + Number(txt) )) continue;//reject non-numeric entries

s += Number(txt);

}

if(form['total']){ form['total'].value = s; }

}

onload = function(){

sum();

}

</script>

<script type="text/javascript">

function sum1(){

var form = document.getElementById('eval_edit');

if(!form) return;

var fields = form.getElementsByTagName('input');

var s = 0;//sum value

for(var i=0; i<fields.length; i++){

if( fields[i].getAttribute('sumMe1') != "1" ) continue;//reject any field not carring the "sumMe" attribute