I am trying to find a way to implement something like:
<FORM name='form1'><T ABLE>
server scripting loop (php), generates X (a variable number) lines
with the 3 fields {
<TR><TD><inpu t type='text' name='kminicial[]'></TD>
<TD><input type='text' name='kmfinal[]'
onBlur='documen t.form1.kmrodad os[currentindex].value=document .form1.kmfinal[currentindex].value-
document.form1. kminicial[currentindex].value'></TD>
<TD><input type='text' name='kmrodados[]'></TD></TR>
}
</TABLE></FORM>
Just a simple onBlur math with the first two fields of each line,
putting the result on the third. The problem is the "currentind ex"
value, I wasnt able to find how to get this value anywhere, is it
possible to implement this way?
Thanks in advance,
Norman
<FORM name='form1'><T ABLE>
server scripting loop (php), generates X (a variable number) lines
with the 3 fields {
<TR><TD><inpu t type='text' name='kminicial[]'></TD>
<TD><input type='text' name='kmfinal[]'
onBlur='documen t.form1.kmrodad os[currentindex].value=document .form1.kmfinal[currentindex].value-
document.form1. kminicial[currentindex].value'></TD>
<TD><input type='text' name='kmrodados[]'></TD></TR>
}
</TABLE></FORM>
Just a simple onBlur math with the first two fields of each line,
putting the result on the third. The problem is the "currentind ex"
value, I wasnt able to find how to get this value anywhere, is it
possible to implement this way?
Thanks in advance,
Norman
Comment