adamsevera Posted April 11, 2015 Share Posted April 11, 2015 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 Link to comment https://forums.phpfreaks.com/topic/295443-how-can-i-code-dropbox-with-links-and-download-button/ 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 } Link to comment https://forums.phpfreaks.com/topic/295443-how-can-i-code-dropbox-with-links-and-download-button/#findComment-1508898 Share on other sites More sharing options...
charlesdavis Posted April 24, 2015 Share Posted April 24, 2015 Dear Simple use the Ajax for same, It will work for all types of drop down menus.. Link to comment https://forums.phpfreaks.com/topic/295443-how-can-i-code-dropbox-with-links-and-download-button/#findComment-1509810 Share on other sites More sharing options...
NetGuru87 Posted May 1, 2015 Share Posted May 1, 2015 Thanks for shareing the solution! Link to comment https://forums.phpfreaks.com/topic/295443-how-can-i-code-dropbox-with-links-and-download-button/#findComment-1510495 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.