Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org

BBS: Re: JavaScript Validation Numbers - August 06, 1998 at 05:42:40

You are here: irt.org | BBS | Re: JavaScript Validation Numbers [This BBS is closed]

Posted by MArtin Webb on August 06, 1998 at 05:42:40:

In Reply to: JavaScript Validation Numbers posted by Lico on August 03, 1998 at 18:15:59:

: Desire two situations: 1) That it has only accepted number and 2)
: Another one that has only accepted number in the band of 1 the 31.

Try:

function verify (frm) {
if ( (frm.number.value-0) != (frm.number.value)) {
alert ("Only Numbers");
return false;
}
if ( (frm.number.value-0) < 1 || (frm.number.value-0) > 31) {
alert ("Only Numbers");
return false;
}
return true;
}


Follow-ups:

You are here: irt.org | BBS | Re: JavaScript Validation Numbers [This BBS is closed]

©2018 Martin Webb