I am using a questionnaire software which sets the "name" as a number rather than a word. Eg. name="1" I have the vendor's permission to add javascript so that is not an issue here.
The problem is that I cannot use javascript to add some text to the value for the "input." I get an error message if I use document.theForm.1.value.
Example.To this element
<input type=button, value="A" name="1"> I want the value to print in the resulting e-mail message: "A is incorrect."
Since this is group under the name "1" what happens if I use document.theForm[10].value, if this is not the element I am addressing in the group?
Any ideas?
The problem is that I cannot use javascript to add some text to the value for the "input." I get an error message if I use document.theForm.1.value.
Example.To this element
<input type=button, value="A" name="1"> I want the value to print in the resulting e-mail message: "A is incorrect."
Since this is group under the name "1" what happens if I use document.theForm[10].value, if this is not the element I am addressing in the group?
Any ideas?