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

creating dynamic select field

shane3341436
P: 63
I heard that ajax is very powerful for creating dynamic web pages. Is there any way to create a dynamic select field. Like I have two select fields and take data from the database. When choosing a particular item in first select field then its sub categories should be displayed on the second select field. Is it possible to do this without reloading the page?
Sep 14 '07 #1
Share this Question
Share on Google+
8 Replies


shane3341436
P: 63
I heard that ajax is powerful tool for creating dynamic web pages. Is there any way to make the select field dynamic. For example I have two select fields and I have fill data from the database. When changing the option in first select field its subcategories should be diplayed on the second select field. Is this possible to do without reloading the page?
Sep 14 '07 #2

gits
Expert Mod 5K+
P: 5,332
hi ...

of course ... you may have a look at some ajax tutorials that are mentioned in the offsite links at top of the js-forum, at our js-articels ajax-section and at least for example the following 2 threads:

Dynamic drop down menu?
How can I assign value to a hidden field from a select?

kind regards
Sep 14 '07 #3

pbmods
Expert 5K+
P: 5,821
Heya, Shane.

Run over to our search page and search for 'dependent drop down'.
Sep 14 '07 #4

epots9
Expert 100+
P: 1,351
Yes it is possible, but you want the JavaScript Forums. Once there post the code you are having trouble with and they will assist you.

thank you
Sep 14 '07 #5

iam_clint
Expert 100+
P: 1,208
very possible and very easy, In this javascript forum there is a stickied thread called Offsite Links, and in there theres a Category called Ajax I believe you can get most of what you need out of those tutorial and informational links.
If you need more help after you attempt to make an ajax query yourself post back with the problems you are having or if you don't understand something post back and we'll try to explain it.
Sep 14 '07 #6

acoder
Expert Mod 15k+
P: 16,027
Merged duplicate threads.
Sep 14 '07 #7

sanjay123456
100+
P: 125
Dear Friends ,


Can i do it same work without using Ajax means using only java- script .... |????



sanjay
Sep 24 '07 #8

gits
Expert Mod 5K+
P: 5,332
hi ...

of course ... have a look at the links in post #3 ...

kind regards
Sep 24 '07 #9

Post your reply

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