Hey guys/gals...
I'm making my first foray into Javascript, and would appreciate any help you can provide with this function..
<SCRIPT language="JavaScript">
function howMany() {
for(i=0;i<submit.numberTeams.selectedIndex;i++){
document.write ("<input type="text" name="phoneNumbers$i" size="15" maxlength="10"><br>");
}
}
</SCRIPT>
And it's called from:
<select name="numberTeams" onChange="howMany();">
<option> 1 </option>
<option> 2 </option>
</select>
The idea being writing out a new input aspect, based on the input in numberTeams.. Any thoughts would be appreciated.
Thanks
David
I'm making my first foray into Javascript, and would appreciate any help you can provide with this function..
<SCRIPT language="JavaScript">
function howMany() {
for(i=0;i<submit.numberTeams.selectedIndex;i++){
document.write ("<input type="text" name="phoneNumbers$i" size="15" maxlength="10"><br>");
}
}
</SCRIPT>
And it's called from:
<select name="numberTeams" onChange="howMany();">
<option> 1 </option>
<option> 2 </option>
</select>
The idea being writing out a new input aspect, based on the input in numberTeams.. Any thoughts would be appreciated.
Thanks
David