If John's solution doesn't appeal to you, add an onsubmit handler to the
form, e.g. onsubmit="return verify(this)".  The handler function "verify"
would initialize a variable to false.  It would then loop over all of the
options; if any one was set it would set the variable to true and exit
the loop.  If the variable is false, put up a JavaScript alert telling
the user "hey, you cannot leave the option buttons blank".  Then the
function should return the value of that variable.

-David

On Sat, 8 Apr 2000 01:01:13 -0400 "John Quarto-vonTivadar"
<[EMAIL PROTECTED]> writes:
> >
> > My task is to make the option buttons mandatory so
> > that if they click submit, then the form should come
> > back and say 'hey, you cannot leave the option buttons
> > blank'
> 
> make one of them default to being on. (<INPUT TYPE="Radio" 
> NAME="myname"
> value="my value" CHECKED>)
> 
> 
> 
>
-------------------------------------------------------------------------
-----
> Archives: http://www.eGroups.com/list/cf-talk
> To Unsubscribe visit 
> http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk

> or send a message to [EMAIL PROTECTED] with 
> 'unsubscribe' in the body.

________________________________________________________________
YOU'RE PAYING TOO MUCH FOR THE INTERNET!
Juno now offers FREE Internet Access!
Try it today - there's no risk!  For your FREE software, visit:
http://dl.www.juno.com/get/tagj.
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to