Thanks go to Wayne who dropped the perfect custom tag into my inbox this
morning.

As a follow up, does anyone know how to change the value selected in a
listbox from the <body onload=""> section of the page, and would this
trigger the onChange of that select box?

--
Jay 

> -----Original Message-----
> From: James Smith [mailto:[EMAIL PROTECTED] 
> Sent: 07 November 2006 16:15
> To: CF-Talk
> Subject: OT: Multiple Select Boxes (JS)
> 
> I need to fill a secondary and tertiary select box depending 
> on the condition of a primary one.
> 
> For example the first will have the options...
> 
> -- SELECT --
> Ford
> Jeep
> 
> The second and third will have "-- Please select previous cat 
> -- " or something similar and nothing else.
> 
> With an onChange() on the first this should populate the 
> second select with...
> 
> -- SELECT --
> Ka
> Fiesta
> Focus
> 
> If ford is selected from the fist box and leave the third 
> unchanged.  The third should then change to...
> 
> -- SELECT --
> 2 door
> 4 door
> 
> For example, once the second box is changed.
> 
> Ideally I want all of the data sent to the browser on the 
> initial page load
> (IE: no ajax or other multiple request method), probably into 
> an array but any implementation is fine.  The actual data in 
> the boxes will come from a DB query so the JS must be 
> suitable for dynamic construction.
> 
> Anyone have any suitable script handy?
> 
> --
> Jay
> 
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:259594
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to