Jan Huss: NS und Inhalt von Auwahlfeldern ändern

Beitrag lesen

Hallo,

ich habe eine html-Seite mit einem Formular namens sell und u.a. zwei Auswahlfeldern roaming und product.

<select name="product" onChange="setrightvalue('product')">
<option value="1">t1</option>
<option value="2">t2</option>
<option value="3">t3</option>
</select>

<select name="roaming" onChange="setrightvalue('roaming')">
<option value="1">t1</option>
<option value="2">t2</option>
<option value="3">t3</option>
</select>

Wenn eines der beiden Auswahlfelder geändert wird soll sich das andere auch ändern.

function setrightvalue(kind) {
if ( kind == 'product' ) {
   document.sell.roaming.value=document.sell.product.value;
}
else {
   document.sell.product.value=document.sell.roaming.value;
}
}

Leider funktioniert das nur im IE. Das geliebte NS macht einfach nix. Nichteinmal eine Fehlermeldung erscheint. Warum?

Danke für Eure Hilfe!

Gruß Jan Huss