PakiGangsta Posted January 16, 2007 Share Posted January 16, 2007 Alright I am trying to do thi[code]<form action='mywebpage.php' method='POST'><select name='bird'><option value='bigbird'>BigBird</option><option value='medium'>Medium Bird</option><option value='smallbird'>Small Bird</option></select></form><img src='img/bird/bigbird.gif'>[/code]I am wondering how can i use javascript to change that image on the bottom when i choose smallbird or back to bigbird Link to comment https://forums.phpfreaks.com/topic/34350-i-need-help/ Share on other sites More sharing options...
kobmat Posted January 16, 2007 Share Posted January 16, 2007 try<select name='bird' onchange="document.getElementById('birdimage').src='img/bird/' + this.value + '.gif';"><option value='bigbird'>BigBird</option><option value='medium'>Medium Bird</option><option value='smallbird'>Small Bird</option></select></form><img src='img/bird/bigbird.gif' id="birdimage"> Link to comment https://forums.phpfreaks.com/topic/34350-i-need-help/#findComment-161620 Share on other sites More sharing options...
PakiGangsta Posted January 16, 2007 Author Share Posted January 16, 2007 I tried but it just stays the samehttp://tpba.byethost9.com/signup1.php Link to comment https://forums.phpfreaks.com/topic/34350-i-need-help/#findComment-161622 Share on other sites More sharing options...
kobmat Posted January 16, 2007 Share Posted January 16, 2007 it seem to be working from here.. Link to comment https://forums.phpfreaks.com/topic/34350-i-need-help/#findComment-161625 Share on other sites More sharing options...
PakiGangsta Posted January 16, 2007 Author Share Posted January 16, 2007 thank you. but also can i say like if the first one is Age Group Under 8 and second one is 9-17how can i do it when the images change too Link to comment https://forums.phpfreaks.com/topic/34350-i-need-help/#findComment-161626 Share on other sites More sharing options...
PakiGangsta Posted January 16, 2007 Author Share Posted January 16, 2007 Never mind i figured it outTopic is solved[i][b]fenway: how?[/b][/i] Link to comment https://forums.phpfreaks.com/topic/34350-i-need-help/#findComment-161631 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.