one combo dependant on another combo

Hi

Let's say I have one combo that has all the states in a country and I have another combo that has all the cities within the selected state.
I want to populate the cities combo when the user selects a state.
Is it possible to do this without reloading the whole page?

Heine Ferreira

Comments

  • : Hi
    :
    : Let's say I have one combo that has all the states in a country and I have another combo that has all the cities within the selected state.
    : I want to populate the cities combo when the user selects a state.
    : Is it possible to do this without reloading the whole page?
    :
    : Heine Ferreira
    :
    :
    YES use JavaScript

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">








    New Document











    Select Region
    Asia
    Africa
    Australia
    Europe
    Middle East
    Latin America
    North America
    South America


    <--------------------</option>









  • : : Hi
    : :
    : : Let's say I have one combo that has all the states in a country and I have another combo that has all the cities within the selected state.
    : : I want to populate the cities combo when the user selects a state.
    : : Is it possible to do this without reloading the whole page?
    : :
    : : Heine Ferreira
    : :
    : :
    : YES use JavaScript
    :
    : <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    :
    :
    :
    :
    :
    :
    :
    :
    : New Document
    :
    :
    :
    :
    :
    :
    :
    :
    :

    :
    :
    : Select Region
    : Asia
    : Africa
    : Australia
    : Europe
    : Middle East
    : Latin America
    : North America
    : South America
    :
    :
    : <--------------------</option>
    :
    :
    :

    :
    :
    :
    :
    :
    :
    :
    Thank you for your reply.
    What if I wanted to read the cities from a SQL Server table rather than hard coding them?
  • : : : Hi
    : : :
    : : : Let's say I have one combo that has all the states in a country and I have another combo that has all the cities within the selected state.
    : : : I want to populate the cities combo when the user selects a state.
    : : : Is it possible to do this without reloading the whole page?
    : : :
    : : : Heine Ferreira
    : : :
    : : :
    : : YES use JavaScript
    : :
    : : <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    : :
    : :
    : :
    : :
    : :
    : :
    : :
    : :
    : : New Document
    : :
    : :
    : :
    : :
    : :
    : :
    : :
    : :
    : :

    : :
    : :
    : : Select Region
    : : Asia
    : : Africa
    : : Australia
    : : Europe
    : : Middle East
    : : Latin America
    : : North America
    : : South America
    : :
    : :
    : : <--------------------</option>
    : :
    : :
    : :

    : :
    : :
    : :
    : :
    : :
    : :
    : :
    : Thank you for your reply.
    : What if I wanted to read the cities from a SQL Server table rather than hard coding them?
    :
    A GOOD "HOW TO" AT
    http://www.programmersresource.com/articles/multi_dropdown.asp
    /haxme


Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories