?
Solved

javascript textfield validation want to allow only japanes alphabets .

Posted on 2004-11-08
5
Medium Priority
?
770 Views
Last Modified: 2009-07-29
hello friends

  i need to validate my text field wich can only accepting a japanes or double bite carectores .
0
Comment
Question by:ajay_hash
  • 2
3 Comments
 
LVL 7

Accepted Solution

by:
suramsureshbabu earned 2000 total points
ID: 12522992
0
 
LVL 31

Expert Comment

by:GwynforWeb
ID: 12524594
<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>

0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
This article discusses the difference between strict equality operator and equality operator in JavaScript. The Need: Because JavaScript performs an implicit type conversion when performing comparisons, we have to take this into account when wri…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question