Ok, this is weird. I tried the == and it didn't work at all. I tried == on each field individually and then together and it would't change. As soon as I switched it back to a single = , it worked again but still no selection in the pobox select field...strange...
- Gary -----Original Message----- From: Matthew R. Small [mailto:[EMAIL PROTECTED]] Sent: Monday, April 08, 2002 2:53 PM To: CF-Talk Subject: RE: OT - JS Select Menu... Oh... try pobox.selectedIndex == 3 Notice the double equal signs. - Matt -----Original Message----- From: Houk, Gary [mailto:[EMAIL PROTECTED]] Sent: Monday, April 08, 2002 2:37 PM To: CF-Talk Subject: RE: OT - JS Select Menu... Hey Matt, Ok, it almost works...When I select pobox to be 1 (yes), the shipping method changes perfectly. Only one problem...the pobox value disappears! I can still see the dropdown options, but everytime I select one, it just displays a blank option. Any ideas? - Gary <select name="pobox" onchange="if (pobox.selectedIndex= 3) shippingmethod.selectedIndex = 3;" class="formfield"> -----Original Message----- From: Matthew R. Small [mailto:[EMAIL PROTECTED]] Sent: Monday, April 08, 2002 1:49 PM To: CF-Talk Subject: RE: OT - JS Select Menu... 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 ______________________________________________________________________ Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

