Hallo,
vielleicht hat ja jemand von Euch eine Idee,
wie kriege ich es hin, das eine PLZ eingabe nicht mit 00000 erfolgen darf.
hier mein script:
<script language="JavaScript">
function chkFormular() {
var chkZ = 1;
for(i=0;i<document.Formular.PLZ.value.length;++i)
if(document.Formular.PLZ.value.charAt(i) < "0"
|| document.Formular.PLZ.value.charAt(i) > "9")
chkZ = -1;
if(chkZ == -1)
{
alert(document.Formular.PLZ.value + " ist keine gültige PLZ.")
document.Formular.PLZ.focus();
return false;
}
if(document.Formular.PLZ.value.length != 5)
{
alert(document.Formular.PLZ.value + " ist keine fünfstellige PLZ.")
return false;
}
}
</script>
hate jemand eine Idee