Hi,
How can I get javascript to change an image's source when the user clicks on a different list item for a <select> thing on my form?
So, if the item's VALUE is "4" then it displays "sample4.png" on that image...
How can I do this? Thanks,
-compuXP
How to get javascript to change an image source depending...
Moderator: General Moderators
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
Code: Select all
<select onchange="e;your_function(this)"e;>http://devguru.com/Technologies/ecmascr ... image.html for information on what properties you can play with in an image object.