im creating a page that will automatically gets the values inputed in a textfield and automatic add them.
what can i do to make something like that.
i started a code something like this but what if there were 1000 of fields..
heres my code:
function getVal(){
var doc = document['oFrm'];
doc['tot'].value = ((doc['id1'].value)/1) + ((doc['id2'].value)/1);
}
-----------------------------------------------------------------------------------
pls help me... thank you
what can i do to make something like that.
i started a code something like this but what if there were 1000 of fields..
heres my code:
function getVal(){
var doc = document['oFrm'];
doc['tot'].value = ((doc['id1'].value)/1) + ((doc['id2'].value)/1);
}
-----------------------------------------------------------------------------------
pls help me... thank you
Comment