473,326 Members | 2,013 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

I know it's the wrong place to ask a Javascript question but....

UJ
I have a drop down list that I want to have when a certain value has been
selected, another set of controls becomes visible. I've done it using radio
buttons but I don't know how to do it with a drop down box.

Can anybody point me in the right direction?

TIA - Jeff.
Jul 8 '06 #1
2 1105
Jeff,

Accessing the values from a drop down with javascript is a bit different
than radio buttons. I have a bit of sample code on my website that I think
will help you though. It isn't doing exactly what you want. It redirects a
page based on a dropdown selection. But it will give you the piece of
information you are missing I think...

Please find the sample at: http://www.aboutfortunate.com?page=codelibrary
and type: "Open web page from dropdown" in the search box.

If the sample doesn't give you the info you need please feel free to email
me and/or post again here.

Regards,

--
S. Justin Gengo
Web Developer / Programmer

Free code library:
http://www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"UJ" <fr**@nowhere.comwrote in message
news:eP**************@TK2MSFTNGP04.phx.gbl...
>I have a drop down list that I want to have when a certain value has been
selected, another set of controls becomes visible. I've done it using radio
buttons but I don't know how to do it with a drop down box.

Can anybody point me in the right direction?

TIA - Jeff.


Jul 8 '06 #2
selectName.selectedIndex
selectName.options[selectName.selectedIndex]
selectName.options[selectName.selectedIndex].value

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Chicken Salad Alchemist

Big thicks are made up of lots of little thins.
"UJ" <fr**@nowhere.comwrote in message
news:eP**************@TK2MSFTNGP04.phx.gbl...
>I have a drop down list that I want to have when a certain value has been
selected, another set of controls becomes visible. I've done it using radio
buttons but I don't know how to do it with a drop down box.

Can anybody point me in the right direction?

TIA - Jeff.


Jul 8 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Dacian | last post by:
Hi, I´m trying to place a javascript navigation menu inside a cell of a table in my page, the problem is that the constructor of the menu object has parameters for menu positioning and size and...
62
by: TheShadow1 | last post by:
safetyTips - this array is in here.js ...
4
by: Jim | last post by:
I saw a simple web page. It had a frameset with 2 frames. The left frame was a navigtion frame, with links to interesting websites and a place to place a username (guess some of the websites were...
18
by: Mark | last post by:
Hello. I am looking for a way to download and cache a web page that the user has not yet requested, and write the web page to the browser cache without displaying it. My intention is to improve...
4
by: mantrid | last post by:
Hello Hope you can help. I have been using the code below to move elenents around the page. This has worked fine until I put some arguments into the functions so I could use them in many places...
9
by: Coleen | last post by:
Hi All :-) I am desperately looking for some help/information on how to direct page flow. Forget what I have done - here's what I need to do: I have a large ASPX.Net - VB.Net web application...
37
by: jht5945 | last post by:
For example I wrote a function: function Func() { // do something } we can call it like: var obj = new Func(); // call it as a constructor or var result = Func(); // call it as...
136
by: 1001 Webs | last post by:
Every respected Web-authoring Guru says that. This is the era of table-less design, CSS code, XHTML compliant websites. Separate layout from content. There's no reason to use tables any more....
5
by: mesut | last post by:
Hi there, how are you colleagues? I try to set a linkaddress in code behind for a <asp:hyperlinkserver control. but I think I have some syntax problem. I don't know how to fix it. What's...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.