adamsevera Posted April 11, 2015 Share Posted April 11, 2015 (edited) Hello, How can i code the following. i want to add a dropdown box in my wallpaper site (wordpress powered) with multiple resolution options when user selects "1920 x 1080" and hits download a wallpaper with "1920 x 1080" resolution must start downloading when user selects "1024 x 768" and hits download a wallpaper with "1024 x 768" resolution must start downloading. I know this is pretty simple and stupid question but i am honestly quite confused on how to do this, can this be done with just html/css or does this need some php codes too? Can you please please Edited April 11, 2015 by adamsevera Quote Link to comment Share on other sites More sharing options...
jeffreyappel Posted April 13, 2015 Share Posted April 13, 2015 The way i solved : <form name="mycombo"> <p><select name="example" size="1"> <option value="#Link1">JavaScript Kit</option> <option value="#Link2">Coding Forums</option> <option> value="#Link3">Dynamic Drive</option> </select></p> <input type="button" name="test" value="Go!" onClick="go()"> <form/> function go(){ location= document.mycombo.example. options[document.mycombo.example.selectedIndex].value } Quote Link to comment Share on other sites More sharing options...
charlesdavis Posted April 24, 2015 Share Posted April 24, 2015 (edited) Dear Simple use the Ajax for same, It will work for all types of drop down menus.. Edited April 24, 2015 by charlesdavis Quote Link to comment Share on other sites More sharing options...
NetGuru87 Posted May 1, 2015 Share Posted May 1, 2015 Thanks for shareing the solution! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.