Tech Sharing

Tech Sharing


Form validation not allow chinese cheractor

By on January 14, 2010

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;   

Website Pin Facebook Twitter Myspace Friendfeed Technorati Digg Google StumbleUpon Premium Responsive


No Responses to “Form validation not allow chinese cheractor”

Write a Comment

Captcha * Time limit is exhausted. Please reload CAPTCHA.

%d bloggers like this: