In a html if i press india i should get its states, and if i press australia i should get its states
-It should be in drop down list only
can some one please help me out
ypks_destiny
0
Light Poster
Recommended Answers
Jump to Posti think you need to store the states in a DB using the country as primary key.
then add an event on the onClick of your button.
On this onClick event, you will populate your dropdown list according to the records you have selected from the database.
Jump to PostNope (",) try to google some sample database access codes. If you had that working, try researching for the button onClick event.
Jump to PostNext time, please wrap your codes inside the CODE-tag.
if that is your html, then YES it will display all States whichever you press on your Country option. The key here is you need to create your States dropdown programmatically, that means you do not just type the option values.
…
All 11 Replies
Eric Cute
33
Posting Whiz in Training
ypks_destiny
0
Light Poster
Eric Cute
33
Posting Whiz in Training
ypks_destiny
0
Light Poster
Eric Cute
33
Posting Whiz in Training
ypks_destiny
0
Light Poster
ypks_destiny
0
Light Poster
javaAddict
900
Nearly a Senior Poster
Team Colleague
Featured Poster
ypks_destiny
0
Light Poster
javaAddict
900
Nearly a Senior Poster
Team Colleague
Featured Poster
ypks_destiny
0
Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.