> I have a form that has a series of radio buttons, so that 
> users can choose a timeperiod.  If the user picks 'Range', 
> they can then also choose 'one week, two weeks, one month, 
> etc.' to specify the range.
>  
> What I'm wondering... is whether there is a way I can write 
> something in JavaScript that says 'if the user chooses 
> something from 'Dropdown X', automatically select 'Radio Button Y'?

Sure,

Using the onChange event handler for the select box add a function that
does this:

//pseudo-code

If the value of select box "x" is not null or an empty string
Set the radio button "y" to something.

Mike

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Purchase from House of Fusion, a Macromedia Authorized Affiliate and support the CF 
community.
http://www.houseoffusion.com/banners/view.cfm?bannerid=38

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:182821
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to