Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 05-06-2009, 04:57 PM   PM User | #1
erkerr67
New to the CF scene

 
Join Date: Apr 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
erkerr67 is an unknown quantity at this point
assigned option value from a different dropdown

In a javascript brain rut and I need some help! New with this!

I'm trying to assign a selected value to an option in a dropdown form when another option from a separate dropdown form is clicked on.

example:

Form 1 >
option 2 is selected

when user uses the dropdown on Form 2 and clicks for instance option 7, then I need Form 1 > option 2 to change to Form 1 > option 1

I hope that makes sense..

I know it's probably pretty basic (calling a javascript command to assign a value to a certain option right?), I'm just trying to grasp javascript though. Thank you greatly if you can help
erkerr67 is offline   Reply With Quote
Old 05-06-2009, 07:46 PM   PM User | #2
adios
Senior Coder

 
Join Date: Jun 2002
Posts: 1,404
Thanks: 2
Thanked 32 Times in 32 Posts
adios is on a distinguished road
You left out a key piece of information: the relationship between the two options selected. Is there one? (same value in each select, same position, etc.). It's simple to programmatically (JS) set a drop-down; why you are doing it - the way in which the data from each pair of linked options is related - will help suggest a fuller solution.
adios is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:35 AM.


Advertisement
Log in to turn off these ads.