about DropDown list selection

Discussion in 'Programming' started by ursmile1, May 20, 2008.

  1. #1
    Hi Friends, I am new to this group.Now i am learning basics in coldfusion.
    In our Form City and Country two text box there. The City Text box is dropdown list about all cityies in the database.I have one database table like city and country columns.Diffrent 5 cityies and countryies entered.
    If i selected city in the drop down list , then automatically fill the country textbox, which is related country in the database.please help me.
     
    ursmile1, May 20, 2008 IP
  2. websiteideas

    websiteideas Well-Known Member

    Messages:
    1,406
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    130
    #2
    You could use cfquery to create a query of countries and cities. Then, output this query to a javascript variable. Finally, the rest of the client side code can be easily done with jQuery. For more about that, try a google search for "jQuery LinkedSelect"
     
    websiteideas, May 24, 2008 IP