הצלחתי שיאפשר רק מספרים
var checkStr = theForm.id.value; for (i = 0; i < checkStr.length; i++) { ch = checkStr.charAt(i) if ((ch>'9') || (ch<'0')) { theForm.id.focus(); theForm.id.select(); newalert(iderror3); return (false); } }
|
איך אני מוסיף שיבדוק גם אותיות אנגליות?