Hi!
Das ist der Code:
Ich find da aber keinen Fehler...
Firefox Fehlerkonsole schrieb:Fehler: missing ; before statement
Quelldatei: https://localhost/so2/inc/static_functions.js
Zeile: 24, Spalte: 22
Quelltext:
}elseif(pw.length<6) {<hier>
Das ist der Code:
PHP:
function passwdChk(pw,pw2){
if(pw.length>5) {
document.getElementById('anm_pw2').style.display = 'table-row';
document.anmeldung.userpw1.style.backgroundColor = 'yellow';
document.anmeldung.userpw2.style.backgroundColor = 'yellow';
[B]document.anmeldung.anm_SendBtn.style.display = 'none';
}elseif(pw.length<6) {
document.getElementById('anm_pw2').style.display = 'none';[/B]
document.anmeldung.userpw1.style.backgroundColor = 'salmon';
document.anmeldung.anm_SendBtn.style.display = 'none';
}elseif((pw.length>5) && (pw == pw2)) {
with (document.anmeldung) {
userpw1.style.backgroundColor = 'limegreen';
userpw2.style.backgroundColor = 'limegreen';
anm_SendBtn.style.display = 'inline';
}
}
}
Ich find da aber keinen Fehler...
Zuletzt bearbeitet: