Sorry...

<select name="pobox" onchange="if (pobox.selectedIndex== XXX  )
shippingmethod.selectedIndex = YYY;">


where I have XXX you need to replace it with the numbered index that the
value of 1 is in your pobox select box.  Where I have YYY you need to
replace it with the numbered index that the value of 11.95 is in your
shippingmethod select box.

-----Original Message-----
From: Houk, Gary [mailto:[EMAIL PROTECTED]] 
Sent: Monday, April 08, 2002 1:33 PM
To: CF-Talk
Subject: RE: OT - JS Select Menu...

Hi Matt,

I just tried this, but it's still asking for ")"  ...any thoughts?

<select name="pobox" onchange="if (pobox.selectedIndex==(index of 1))
shippingmethod.selectedIndex = (index of 11.95);">

-----Original Message-----
From: Matthew R. Small [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 08, 2002 1:28 PM
To: CF-Talk
Subject: RE: OT - JS Select Menu...


Hi Gary,
        <select name="pobox" onchange="if (pobox.selectedIndex==(index
of 1) shipbox.selectedIndex = (index of 11.95);">

Matt Small

-----Original Message-----
From: Houk, Gary [mailto:[EMAIL PROTECTED]] 
Sent: Monday, April 08, 2002 12:28 PM
To: CF-Talk
Subject: OT - JS Select Menu...

I have two select menus, one is for pobox and one for shipping method. I
want to automatically select the shipping method usps (value of that
option is 11.95) when a user selects pobox (value of 1). I could get it
to update a regular text box, but not a select menu. Any help/code would
be great.

TIA,

- Gary



______________________________________________________________________
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to