I have a form that depends on a selection made by the user.
For example, when the user comes he/she can only see a dropdown to choose the continent he/she lives.
Once selected the page should display the rest of the form... like... choosing the country... region, age, profession, etc etc...
this is not the most polite way to ask... but... can somebody post basic code on how to do this?
thanks
ajax question - show diferent forms on dropdown select.
Moderator: General Moderators
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
So whether you use Ajax or not depends on whether you want to Lazy Load the data or initialize the page with all the data (you could create Javascript arrays for example). EIther way you do it, the display handling code is the same. And if designed properly, it should not matter where the data comes from so you could switch between Lazy Loaded and initialized data.
(#10850)