File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Joined: Apr 11, 2005
Feb 28, 2006 19:16:00
I have 2 radio buttons using the same name in a form:
<INPUT TYPE="radio" NAME="gender" CHECKED>Male<BR> <INPUT TYPE="radio" NAME="gender">Female
I have a reset button in form that calls the function resetFields.
How can I change the checked button back to the 'Male' option
in this function.
I am tying to use something like...
But that isn't quite right.
Any ideas? Thanks.
Joined: Nov 08, 2001
Feb 28, 2006 20:14:00
It is an array
document.formName.gender.checked = true;
Don't get me started about those stupid
subject: radio buttons
setting a radio button
Using Struts Creating the Radio Button for gender
Question on using DisplayTag in JSPs
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015