This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of Real-World Software Development: A Project-Driven Guide to Fundamentals in Java and have Dr. Raoul-Gabriel Urma & Richard Warburton on-line!
See this thread for details.
Win a copy of Real-World Software Development: A Project-Driven Guide to Fundamentals in Java this week in the Agile and Other Processes forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Liutauras Vilda
  • Knute Snortum
  • Bear Bibeault
Sheriffs:
  • Devaka Cooray
  • Jeanne Boyarsky
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • salvin francis
Bartenders:
  • Tim Holloway
  • Piet Souris
  • Frits Walraven

select values for second drop down

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All
Can any one help me?
I am trying to select a value from the dynamic drop down and depending upon my selection[i.e. state name] I would like to display all the related cities in the second drop down.
Here is the code:




[BPSouther: Added code tags and fixed encoded chars]
[ August 20, 2007: Message edited by: Ben Souther ]
 
Marshal
Posts: 67361
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your code is pretty much unreadable. Please use UBB code tags to preserve its formatting, and please do not replace < > with lt and gt.

If you have trouble posting code, it's usually becasue you have JavaScript that is filtered: phrases such as: onclick or eval.

Please read this for more information.
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So...
What part is giving you trouble?
Since we can't run your code without your database, could you tell us what happens when you run it?
What, if anything, is different from what you're expecting?
[ August 20, 2007: Message edited by: Ben Souther ]
 
abhay patil
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all
I am trying to access all the values of countries from the database.
Depending upon the value I have selected my second drop down list should get populated with all the states from the selected country.
Now depending upon my selection for the second drop down my third drop down should get populated with all the cities of that state.
So I am expecting something like this:
First drop down (Country Name from the database)

Second drop down (State name from the data base where country name = Selected by the user in the first drop down)

Third drop down (City name from the data base where country name = selected by the user in the first drop down && state name = selected by the user in the second drop down
 
Everybody! Do the Funky Monkey! Like this tiny ad!
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!