By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,676 Members | 1,669 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,676 IT Pros & Developers. It's quick & easy.

4 Drop Down Boxes in HTML

P: 4
I have 4 drop down lists, namely Location, country, State and City.
Ex: Location: Asia, Country: India, State: Andhra Pradesh, City: Hyderabad.

If i select any option in the Location drop down list, it should populate the
country drop down list, and if i select an option in country drop down list,
it should populate the state drop down list, and if i select any option in the state
drop down list, it should populate the city drop down list.

How can this functionality be achieved using HTML/Javascript?
Any one, please present the sample working code.
Nov 27 '07 #1
Share this Question
Share on Google+
8 Replies


P: 4
You can post your reply to :
xxxx
I will be most happy if you do that.
Nov 27 '07 #2

drhowarddrfine
Expert 5K+
P: 7,435
HTML cannot do this so I'll transfer you to the javascript board.
Nov 27 '07 #3

Expert 100+
P: 390
how you are getting the data for each dropdown box.?

You can write codes for onchange event of each dropdown and populate the related dropdown based on the selected value
Nov 27 '07 #4

ift40458
P: 13
[color=#105cb6][/color]hi dskanth,


can u send a mail to me

**** - removed email

Note : mention subject as "Problem"

I'll send u code for that drop down boxes...


Best wishes,
ift40458
Nov 28 '07 #5

acoder
Expert Mod 15k+
P: 16,027
I have removed your email for your own protection - see FAQ.
Nov 28 '07 #6

ift40458
P: 13
MR. acoder

We can't show some coding( As per Company Rules)

If i show that codes here , Company will object that.


Only for that sake i'd asked him to mail me...

Any suggestions pls.............

regards,
ift40458.
vbmenu_register("postmenu_2958058", true);
Nov 28 '07 #7

acoder
Expert Mod 15k+
P: 16,027
We can't show some coding( As per Company Rules)

If i show that codes here , Company will object that.
You can try using the PM (private messaging) facility. I have to ask though, if the company would object to displaying the code here, then how is giving that same code to someone via email different?
Nov 28 '07 #8

ift40458
P: 13
Ok fine acoder,

Thanks for giving me the information about Private Messaging...



regards,
ift40458
Nov 29 '07 #9

Post your reply

Sign in to post your reply or Sign up for a free account.