Html/Javascript question...

notfred

Lifer
Feb 12, 2001
38,241
4
0
I need the contents of one drop down box to be dependant upon the selection in another drop down box, then I need an iamge to be dependent upon the second dropdown box. I don't care if the page refreshes in between selections, but it'd be kinda cool if it didn't have to. Bare minimum - I need to know how to get a dropdown box to send you to a link as soon as you select something, without hitting any buttons.

/me is a perl programmer, not a javascript guy.
 

wolf550e

Golden Member
May 22, 2000
1,370
0
0
in the first form, in Select tag, a property "onChange", call a javascript function that prints out the second form, in the OnChange there call a JS function that prints the picture.
i would use CSS to print the second form and the picture, but html forms inside CSS layers are known to not work in Netscape4, though almost noone uses that anymore so you can not worry about it. Opera doesnt support CSS though...

use google to search for example code on drop down menus, you'll see what i mean.

-Wolf550e
Who can't believe he is helping someone on webdesign, him being a newbie and all...