Moritzblt: SyntaxError: missing ) after argument list

Beitrag lesen

Om nah hoo pez nyeetz, Moritzblt!

function checklimit(){
if(Limit>=1 && Limit<=100)
{ alert(Limit 'ist ein gutes Limit'); }                                           <====
if else(Limit>100) {
alert('Das Limit muss unter 100 liegen'); }
else {alert('Das ist kein gueltiges Limit');}
}

if else klingt komisch.

Matthias

Habs geändert, funktioniert immer noch nicht, mit gleicher Fehlermeldung.

function checklimit(){
if(Limit>=1 && Limit<=100)
{ alert(Limit 'ist ein gutes Limit'); }
else if(Limit>100) {
alert('Das Limit muss unter 100 liegen'); }
else {alert('Das ist kein gueltiges Limit');}
}