Thursday, 15 August 2013

Select options depending on another select options

Select options depending on another select options

I have a form that has two select fields, one representing the region and
one the name of the city/village/etc. I have a database with all these
entries in the following form:
id (int 11, ai)
region (varchar 50)
city(varchar 50)
I've found a script here on so that lets you select different options but
it's made with JS and I have no idea how to adapt it to my needs. I need a
database because I have 13.000+ entries and it's not really a good idea to
enter them manually in the code. Here is the link to the topic that I've
read, it's solution is in one of the comments as well.
how to change a selections options based on another select option selected?.
Please let me know if I need to edit my post before downrating. Thanks in
advance!

No comments:

Post a Comment