PDA

View Full Version : radio button submit


hedbanger
05-07-2003, 09:34 PM
can i get some help with getting this form to go to the new page WITHOUT a submit button -- just the onClick of a radio button? thanks.




<form name="reserves" id="reserves" method="post" action="updateQty3.html" target="_blank">
<table width="200">
<tr>
<td><label>
<input type="radio" name="skus" value="555" />
555</label></td>
</tr>
<tr>
<td><label>
<input type="radio" name="skus" value="556" />
556</label></td>
</tr>
<tr>
<td><label>
<input type="radio" name="skus" value="557" />
557</label></td>
</tr>
</table>
<p>
<input type="submit" name="Submit" value="Edit Qty" />
</p>
</form>

arnyinc
05-07-2003, 09:50 PM
<form name="reserves" id="reserves" method="post" action="updateQty3.html" target="_blank">
<table width="200">
<tr>
<td><label>
<input type="radio" onclick="this.form.submit()" name="skus" value="555" />
555</label></td>
</tr>
<tr>
<td><label>
<input type="radio" onclick="this.form.submit()" name="skus" value="556" />
556</label></td>
</tr>
<tr>
<td><label>
<input type="radio" onclick="this.form.submit()" name="skus" value="557" />
557</label></td>
</tr>
</table>
</form>

hedbanger
05-07-2003, 10:19 PM
thanks arnyinc,
i'm saving that one.
i also found this one generated by dreamweaver:
<input name="skus" type="radio" onclick="MM_openBrWindow('updateQty.htm','','toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,r esizable=yes')" value="556" />
556</label></td>

so now i have 2 choices.
thanks again!