Yup, sorry, my code wasn't too hot.
// Get references to the selects
elements = new Array(
getElementById('select_1'),
getElementById('select_2'),
getElementById('select_3'),
getElementById('select_4'),
...
...
);
function myOnChange() {
for (...) {
if ( elements[i].options[elements[i].selectedIndex].value ==
this.options[this.selectedIndex].value ) {
elements[i].selectedIndex = 0; // Set the other select back to the top
option
}
}
}
Didn't test that, does it work?
Ade
-----Original Message-----
From: Tony Weeg [mailto:[EMAIL PROTECTED]
Sent: 17 August 2004 00:22
To: CF-Talk
Subject: Re: _javascript_ question
adrian...
thank you, now, how can i marry that with matt's idea?
tw
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
[Donations and Support]
- Re: javascript question Dick Applebaum
- Re: javascript question Tony Weeg
- Re: javascript question Tony Weeg
- Re: javascript question Dick Applebaum
- Re: javascript question Tony Weeg
- RE: javascript question Jim Davis
- '(Unknown)' is not a valid path Charlie Griefer
- Re: '(Unknown)' is not a valid path Chris Johnston
- Re: '(Unknown)' is not a valid path Charlie Griefer
- Re: '(Unknown)' is not a valid path Chris Johnston
- Re: ot: javascript question Adrian Lynch
- Re: ot: javascript question Scott Brady