Hi All,
Been learning Javascript (via google) to create forms with pre-set values.
As seen below. My problem I have found is this: I can't seem to figure out
(or find so far via google) how to preset form options when the input type
is a radio button, or dropdown list. The same method does not seem to work
with input fields.
Anyone know of such a comprehensive site?
Thanks ahead,
Daniel
<FORM name="PersProf" action="newuser .pl" method="POST">
<table border="0">
<tr>
<td WIDTH="200">
First Name
</td>
<td>
<input type="text" name="first_nam e" maxlength=32 size = 32>
</td>
</tr>
</table>
<script language="JavaS cript">
<!--
//setting the value:
document.PersPr of.first_name.v alue = '$first_name';
-->
</script>
Been learning Javascript (via google) to create forms with pre-set values.
As seen below. My problem I have found is this: I can't seem to figure out
(or find so far via google) how to preset form options when the input type
is a radio button, or dropdown list. The same method does not seem to work
with input fields.
Anyone know of such a comprehensive site?
Thanks ahead,
Daniel
<FORM name="PersProf" action="newuser .pl" method="POST">
<table border="0">
<tr>
<td WIDTH="200">
First Name
</td>
<td>
<input type="text" name="first_nam e" maxlength=32 size = 32>
</td>
</tr>
</table>
<script language="JavaS cript">
<!--
//setting the value:
document.PersPr of.first_name.v alue = '$first_name';
-->
</script>
Comment