Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

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

You are here: irt.org | FAQ | JavaScript | Form | 10.2 | Q248 [ previous next ]

<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?'

©2018 Martin Webb