Jump to content

Archived

This topic is now archived and is closed to further replies.

benji87

Swap image with drop down menu

Recommended Posts

Hi all im currently working on a fixtures form for rugby games. What im trying to do is when the user selects the team from the drop down list it will show the selected teams badge above.

I am really a novice when it comes to javascript but as far as im aware javascript is the most practical way to do what i want.

I know you can do a basic onchange script in dreamweaver behaviors but it will only change to one image on any selection.

If someone could point me in the driection of a tutorial or script that does exactly that it would be great thanks!

Share this post


Link to post
Share on other sites
If you mean two drop-downs, you just need to maintain a hash that has each team's badges, and have the onchange of one reset the list of the other.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.