Markus: Formular-Sprungmenüs: Validationproblem mit NS 4.78

Beitrag lesen

Hi Andreas
Danke für den Hinweis mit dem "selectedIndex".
Das wusste ich nicht.

Ich hatte auch folgenden Syntax ausprobiert:
if (document.prod.skk[0].checked == true &&  document.prod.menu1.options.value == "a")

ist das denn auch falsch?

es ging (mit dem "value=")nämlich auch nicht, die Urls aufzurufen mit:

document.prod.action="URL";
document.prod.submit();

oder stimmts hier vielleicht nicht?
Markus

Hallo Markus,

if (document.prod.skk[0].checked == false && document.prod.skk[1].checked == false)
if (document.prod.skk[0].checked == true &&  document.prod.menu1.options.selectedIndex == "")
if (document.prod.skk[1].checked == true &&  document.prod.menu2.options.selectedIndex == "")
if (document.prod.skk[0].checked == true &&  document.prod.menu1.options.selectedIndex == "a")

selectedIndex ist eine Zahl. Du vergleichst diese Zahl mit einem String.

Grüße
Andreas