will_1990 Posted July 20, 2010 Share Posted July 20, 2010 Hi everyone, I have the need to create a dropdown list and when an item is selected I would like to start a file download via a h ref link eg h ref "http://server1/sadf/file.xls" Is this even possible - I have read that it may not be possible to use a h ref in an options list as obviously they are normally used to pass information in a form to the server. Am I going about this the wrong way? Any advice would be greatly appreciated or any other alternatives! Many thanks, Will Quote Link to comment Share on other sites More sharing options...
haku Posted July 20, 2010 Share Posted July 20, 2010 You can't put anchor tags inside options. You should add an <input> button that triggers the download after a selection has been made. Then you can use javascript to hide that button, and set an onchange handler to the select element so that when the user selects an item, the download automatically stops. 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.