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

Drop Down Box Manipulation

P: 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
Share this Question
Share on Google+
4 Replies


KevinADC
Expert 2.5K+
P: 4,059
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

P: 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
Expert 2.5K+
P: 4,059
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
Expert 5K+
P: 7,435
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.