Link to home
Start Free TrialLog in
Avatar of ajay_hash
ajay_hash

asked on

javascript textfield validation want to allow only japanes alphabets .

hello friends

  i need to validate my text field wich can only accepting a japanes or double bite carectores .
ASKER CERTIFIED SOLUTION
Avatar of suramsureshbabu
suramsureshbabu

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
<script>
function check(val){
 for (i=0;i<val.length;i++)
  if (val.charCodeAt( i) <255) return false
return true
}
str='abcDF'
alert(str+' '+check(str))
</script>