function input Alphabet(inputtext, alert Msg) // Function that checks whether input text includes alphabetic and numeric characters.
function text Alphanumeric(inputtext, alert Msg) // Function that checks whether the input characters are restricted according to defined by user.
Our validation script will ensure that the user enters their name before the form is sent to the server. Try pressing the Send Details button without filling anything in the "Your Name" field.Regular expression helps you in pattern matching in string. : Matches any single charcter except a new line : Matches the preceding character or repeated character. The basic expression for matching entered value as number in the field is: /^[0-9] $/.