nashsaint Posted May 19, 2008 Share Posted May 19, 2008 Hi, Can you help me build a multiple pull down menu where the next pull-down is dependent from the previous one? Say I have these: Category 1 - List 1 - List 2 - List 3 Category 2 - If list 1 Display this - and this.... - If list 2 display this.. - If list 3 display this.. .... ..... I hope you get the idea. Can you help me out please? thanks. Quote Link to comment Share on other sites More sharing options...
bilis_money Posted May 19, 2008 Share Posted May 19, 2008 http://w3schools.com/css/default.asp Quote Link to comment Share on other sites More sharing options...
nashsaint Posted May 19, 2008 Author Share Posted May 19, 2008 Thanks, but can you be a little specific please? thanks. Quote Link to comment Share on other sites More sharing options...
corbin Posted May 19, 2008 Share Posted May 19, 2008 Hrmmm... Do the two selects need to be on the same page? Do you care if the page reloads? Quote Link to comment Share on other sites More sharing options...
nashsaint Posted May 19, 2008 Author Share Posted May 19, 2008 Yes, if possible i want the selects to be on the same page, literraly one after another. I don't mind if page reloads as long as it does the job. Thanks. Quote Link to comment Share on other sites More sharing options...
gizmola Posted May 19, 2008 Share Posted May 19, 2008 You can do what you want using Ajax/Javascript. It's non-trivial, but not incredibly difficult either. If the dependency on the dropdowns is derived from the database, then Ajax is a good way to handle it --- no reloads required. Hopefully you are able to do some javascript coding. Quote Link to comment Share on other sites More sharing options...
nashsaint Posted May 19, 2008 Author Share Posted May 19, 2008 selections from Options menu are not extracted from sql but the result is. Whatever the user selected from the options will then be queried to the sql and display the result. Quote Link to comment Share on other sites More sharing options...
BlueSkyIS Posted May 19, 2008 Share Posted May 19, 2008 2 options: 1. submit the form whenever a selection is made, filling the next selection before sending the page back. reloads page 2. Ajax: dynamically update the next selection based on the first. doesn't reload page 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.