LyndonOHRC
Programmer
Hi, I'm writing a form to scan an unknown number of barcode labels. The technique I’m trying is to use is to store the data in hidden input elements. To give them unique id’s I need to count how many have an id beginning with the string “CurrentValue“ so I can concatenate the count to the string I’m using for my id .
What I have so far:
Thanks
Lyndon
---People Remember about 10% of what you say ---They never forget how you made them feel. Covey
What I have so far:
Code:
[COLOR=red]//NextElement=count how many have an id beginning with the string “CurrentValue“[/color]
var NewHiddeninput=document.createElement("input");
NewHiddeninput.id='CurrentValue'+NextElement;
NewHiddeninput.type='Hidden';
NewHiddeninput.value=document.Scan.label1.value;
document.Scan.appendChild(NewHiddeninput);
Lyndon
---People Remember about 10% of what you say ---They never forget how you made them feel. Covey