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 .
i need to validate my text field wich can only accepting a japanes or double bite carectores .
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
http://uk.builder.com/webdevelopment/scripting/0,39026636,20278495,00.htm
<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>
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>