473,396 Members | 1,724 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,396 software developers and data experts.

Changing the selected value of a select element based on the value of another select

Hi All,

I have been searching the net for hours but have not found anything that does the trick. I am looking for a simple code that will look at one select drop down and anchange modify a second drop down.

This is specifically for a calendar function like outlook.

So if I change box one to 08:30, the second drop down will automatically change to 09:00. Likewise if the first was changed to 10:30 the second would change to 11:00, etc.

Maybe someone has a script that does something like this already? Any help would be most appreciated.

Thanks,
Aug 14 '07 #1
2 1461
pbmods
5,821 Expert 4TB
Heya, pmccarthy. Welcome to TSDN!

Changed thread title to better describe the problem (did you know that threads whose titles contain phrases such as, 'help required' actually get FEWER responses?).
Aug 14 '07 #2
acoder
16,027 Expert Mod 8TB
Hi All,

I have been searching the net for hours but have not found anything that does the trick. I am looking for a simple code that will look at one select drop down and anchange modify a second drop down.

This is specifically for a calendar function like outlook.

So if I change box one to 08:30, the second drop down will automatically change to 09:00. Likewise if the first was changed to 10:30 the second would change to 11:00, etc.

Maybe someone has a script that does something like this already? Any help would be most appreciated.

Thanks,
Post your code.

Do both the select elements have the same option values?
Aug 15 '07 #3

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

Similar topics

7
by: Hal Vaughan | last post by:
I have a sample script from a book ("Beginning JavaScript" by Paul Wilton) that removes or adds a choice to a <SELECT> element. The <FORM> is form1 and the <SELECT> is theDay. The example uses...
24
by: Charles Crume | last post by:
Hello; My "index.htm" page has 3 frames (content, navigation bar, and logo). I set the "SRC" of the "logo" frame to a blank gif image and then want to change it's contents after the other two...
2
by: Monty | last post by:
I use a SELECT dropdown as the nav interface for jumping to a chosen page number. When I setup up the SELECT element on the page, I want to show the user the current page number they are on, so, I...
3
by: damezumari | last post by:
I have a form called myform with a listbox called combounit. I have another listbox on the form called combolevel. When I change value in combolevel I call a javascript function that does various...
2
by: Gary Dale | last post by:
I have a form with a pull-down list with six options, each of which has a value set. The value is the e-mail account name (without the domain) of a group while the displayed value is the full name...
7
by: wkeithwork | last post by:
I'm pulling my hair out... I have a few radio boxes where a user can choose different options and I want to show an explanation of each option after it's clicked. Here's what I have: <script...
5
by: kodt | last post by:
I need to set an option from a select box to be selected based upon a value I am pulling from a database. I cannot alter the code of the select box in this case, so I must use javascript to...
6
by: troy_lee | last post by:
I have a continuous form that has one combo box (cbo1) with the selectable values of "Removal" and "Installation". I would like to change another combo box (cbo2) value list based on the selection...
1
by: angelicdevil | last post by:
i have listbox 1 which displays status , based on selection of status listbox 2 displays usernames. and based on username selected the textbox displays the email id. its working fine till...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.