Hi. Everyone
I’m trying to loop through an html document to perform some tasks. The html document contains a couple of input boxes which gather the data from the user. However, to complete my task I need to get the name of each input box and the value of entered data. The former is archived by these statements:
var myelements=docu ment.getElement sByTagName("inp ut");
for (var i=0;i< myelements.leng th;i++){
var boxname=myeleme nts[i].name
var boxvalue=
Unfortunately, I stuck with how to get the input box’s value.
Any help is much appreciated
Cheers
I’m trying to loop through an html document to perform some tasks. The html document contains a couple of input boxes which gather the data from the user. However, to complete my task I need to get the name of each input box and the value of entered data. The former is archived by these statements:
var myelements=docu ment.getElement sByTagName("inp ut");
for (var i=0;i< myelements.leng th;i++){
var boxname=myeleme nts[i].name
var boxvalue=
Unfortunately, I stuck with how to get the input box’s value.
Any help is much appreciated
Cheers
Comment