Jillian,
The answer is yes. 

In your drop down have an onChange event, that calls a function that
checks the value selected and then does a
document.formName.formFieldFame.selected = true based on that value.

This should work.

HTH
G


On Thu, 28 Oct 2004 09:28:29 -0600, Jillian Koskie <[EMAIL PROTECTED]> wrote:
> 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'?
> 
> This is the snippet from my form:
> 
> <tr>
>  <td valign="top"><br />From pages <b>created</b>:</td>
>  <td valign="top">
>  <br />
>  <input type="radio" name="timeperiod" value="anytime" checked />anytime
>  <br /><input type="radio" name="timeperiod" value="range" />
>  <select name="created">
>   <option value="OneWeek">one week
>   <option value="TwoWeeks">two weeks
>   <option value="OneMonth">one month
>   <option value="ThreeMonths">three months
>   <option value="OneYear">one year
>  </select>
>  ago
>  <br /><input type="radio" name="timeperiod" value="between" />between
>  <input type="text" name="startdate" size="10" />&nbsp;<a
> href="javascript:ShowCalendar('advanced_form', 'startdate')"><img
> src="/images/cal.gif" width="16" height="16" border="0" alt="Click here
> to choose a date."></a>
>  and <input type="text" name="enddate" size="10" />&nbsp;<a
> href="javascript:ShowCalendar('advanced_form', 'enddate')"><img
> src="/images/cal.gif" width="16" height="16" border="0" alt="Click here
> to choose a date."></a>
>  </td>
> </tr>
> 
> --
> Jillian
> 
> 

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

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:182823
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=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to