Detect characters code

xiaoxiao2021-03-06  40

Strnumber = form.Number.Value; if (strnumber == ") {Alert (" Please enter your ID number! "); form.Number.focus (); return (false);} if (Strnumber.Length < 5 || Strnumber.Length> 20) {Alert ("Your ID number is incorrect, must be between 5-20 bits!"); Form.number.focus (); return (false);} for = 0; Index

// Check if the input item is a digital function Digit (Check) {return (('0' <= check) && (check <= '9'));} // Check if the input item is a letter Function Alpha (Check) { Return ((('a' <= check) && (check <= 'z')) || (('a' <= check) && (check <= 'z')))} // ->

转载请注明原文地址:https://www.9cbs.com/read-76399.html

New Post(0)