hi,
Ich habe ein multiples select mit 8 Options. Ich möchte nun überprüfen, ob die 7te Option angeklickt ist.
[...]
if(document.anmeldung.dienstleistung[7].selected) ...
(Formular heißt "anmeldung", Select "dienstleistung")
Er spuckt nun die Fehlermeldung: "'document.dienstleistung.7' ist Null oder kein Objekt".
Mit obiger Syntax versuchst du auf das _siebte Element_ namens dienstleistung innerhalb des Formulars mit dem Name anmeldung zuzugreifen. Das ist nicht das, was du willst.
gruß,
wahsaga
--
/voodoo.css:
#GeorgeWBush { position:absolute; bottom:-6ft; }
/voodoo.css:
#GeorgeWBush { position:absolute; bottom:-6ft; }