I designing a form that has several drop down lists. When you select an item on a drop down list, the contents of another has to be dynamically generated with an sql statement where the value of the first drop down list is part of the where clause. Some IDE's have this build in, but i'm just using a vi editor. Any advice, sample code, links ? Thanks in advance.
you can dynamically change other combo values by writing a onchange() event in the first combo.in onchange event you can catch the combo value and get the corresponding other combo values from database dynamically and can be displayed in other combo's.......
posted 18 years ago
Originally posted by doms molina: anyone who has the code yet? it's hard to find over the net i always get php code...
The server-side code for this is trivial: simply obtain the data by whatever means and return it as XML or JSON. It's the client-side Ajax code that can be tricky (unless you are using an Ajax-enabled library such as jQuery -- highly recommended).