I wasnt sure what the subject should be. Here is my problem though:
<script language=”javascript”>
<!–
document.write(‘<form name=”form2″>’)
document.write(‘<table border=”1″ cellpadding=”5″ cellspacing=”0″ rules=”none”>’)
[COLOR=royalblue]//amount is a variable set somewhere else on the page
for (i = 1; i<=amount; i++) {
document.write(‘<tr><td>Link ‘+i+'</td><td><input type=”text” name=”Link’+i+'”></td></tr>’)
}
document.write(‘</table>’)
document.write(‘</form>’)
[COLOR=royalblue]//can I do this? I am trying to create a script after the text boxes are generated, that will recognize “form2” and then create variables for each text box created with the for loop.
eventually I want the page to be able to reference each one of the text boxes so that I can use their value elsewhere on the page.
var script = ”
script += ‘<script language=”javascript”>’
script += ‘var link = document.form2.Link+i+.value’
script += ‘</script>’
document.write(script)
//–>
</script>
I appreciate any help
Thank You