468,236 Members | 1,951 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,236 developers. It's quick & easy.

Drop Down Box Manipulation

52
hi,
I need to capture what a user selects in the drop-down list. How do i do that? I need to perform different functions depending on what he selects.
Apr 16 '07 #1
4 1721
KevinADC
4,059 Expert 2GB
you need to use a server side script like PHP or ASP or perl or any other server side script. First thing to decide is what server side scripting language you will use and then proceed from there.
Apr 16 '07 #2
mallz
52
you need to use a server side script like PHP or ASP or perl or any other server side script. First thing to decide is what server side scripting language you will use and then proceed from there.
can i use client-side javascript?how can i capture the value using this?
I used selectedIndex but am unable to capture.
Apr 16 '07 #3
KevinADC
4,059 Expert 2GB
I believe you can, ask in the javascripting forum. Not that you can do anything server side with the form data that way but maybe you don't need to.
Apr 16 '07 #4
drhowarddrfine
7,435 Expert 4TB
I'm not 100% sure we answered the question correctly. If you want the selection to be sent to the server for processing, you can do that with forms, though javascript can do that, too.

If you want the page to change based on the selection but without sending that selection to the server, then you need javascript.
Apr 16 '07 #5

Post your reply

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

Similar topics

1 post views Thread by Dan | last post: by
2 posts views Thread by Yoshitha | last post: by
1 post views Thread by pmelanso | last post: by
7 posts views Thread by callawayglfr | last post: by
4 posts views Thread by TycoonUK | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.