Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Q248 How can I maintain two drop down menus so that a change to one is reflected on the other?

irt.org | Knowledge Base | JavaScript | Form 10.2 | Q248 [ previous next ]

Q248 How can I maintain two drop down menus so that a change to one is reflected on the other?

<FORM NAME="formName1">
<SELECT NAME="selectName1"
 onChange="document.formName2.selectName2.selectedIndex = document.formName1.selectName1.selectedIndex">
<OPTION>first
<OPTION>second
<OPTION>third
<OPTION>fourth
</SELECT>
</FORM>

<FORM NAME="formName2">
<SELECT NAME="selectName2"
 onChange="document.formName1.selectName1.selectedIndex = document.formName2.selectName2.selectedIndex">
<OPTION>one
<OPTION>two
<OPTION>three
<OPTION>four
</SELECT>
</FORM>

Feedback on 'Q248 How can I maintain two drop down menus so that a change to one is reflected on the other?'


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.