<P> </P> <P> lowercase English: <xmp style = "display: inline "> </xmp> <input id = test onkeypress =" regInput (/^ [a-z] * $/) "style =" ime-mode: disabled "> uppercase English: <xmp style =" display: inline "> </xmp> <input id = test onkeypress =" regInput (/^ [A-Z] * $ /) "style =" ime-mode: Disabled "> Any number: <xmp style =" display: inline "> </xmp> <input id = test onkeypress =" regInput (/^ [0-9] * $/) "style =" ime-mode: disabled "> limited to 2 decimal places: <xmp style =" display: inline "> </xmp> <inpu T id = test onkeypress = "regInput (/^ \ d *\.? \ D {123.12 }$/) "style =" ime-mode: Disabled "> for example, Date: <xmp style =" display: inline "> </xmp> <input id = test onkeypress =" regInput (/^ \ d {1, 4} ([-\/] (\ d {1, 2 }([-\ /] (\ d {1, 2 })?)?)?)? $/) "Style =" ime-mode: Disabled "> for example, 2002-9-29 any Chinese: <xmp style =" display: inline "> </xmp> <input onkeypress =" regInput (/^ $/) "> English: <xmp style =" display: inline "> </xmp> <input onkeypress =" regInput (/^ [a-e] * $/I) "style =" ime-mode: Disabled "> range: a, B, c, d, e Chinese: <xmp style = "display: inline "> </xmp> <input onkeypress =" return false "onkeydown =" setTimeout ('checkchinese ('+ this. value. length + ',' + this. uniqueID + ')', 1) "> scope: 80 or 90, </P>
[Ctrl + A select all Note: If you need to introduce external Js, You need to refresh it to execute]