Form validation not allow chinese cheractor

the following example use the javascript regular express to validate the value where Chinese charecter is not allow.

<script   language=javascript>   
  function   checkChinese(){   
      var   re   =   /[u4E00-u9FA0]+/;   
      if   (re.test(form1.tjiccode.value))   
  return   false;   

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: