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))
{
alert(“不允许输入中文!”);
return false;
}
}
More From david_cheong
david_cheong Recommends
- Apple iPhone 5 will not be launched in September (Sathiya seelan)
- Nokia N9 is not coming to US (Sathiya seelan)
Popularity: 1% [?]
No related posts.






Comments
No Responses to “Form validation not allow chinese cheractor”