On 5/14/09 3:20 AM, "phusys" <alessio.f...@gmail.com> wrote:

> I need to show 3 select box (country, state, city) with data get from
> a mysql database and when a user select a value from one of the select
> box the other shows chained data.
> How can I do this with jquery?

fill the first select before delivering the form to the user.

when the user selects from the first, use ajax to get data to use as options
in the second.

when the user selects from the second, use ajax to get data to use as
options in the third.

e.g. you could write the backend to format the data into html options and
then .load() them into the form select element.


Reply via email to