• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

select values for second drop down

 
abhay patil
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 ]
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64620
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • 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.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic