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=36

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:182817
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