Solved

Jquery Form to Accept German Characters

Posted on 2013-01-29
2
360 Views
Last Modified: 2013-01-29
Hi All ...

I have a form using the JqueryUI Dialog library.
Within there is a name field which is set as required, but I need it to accept foreign characters (German to be more exact) which is doesn't at the moment.

The validation code (which uses regex) is as follows:
bValid = bValid && checkRegexp( name, /^[A-Z0-9 _]*$/i, "Name is missing" );

Open in new window

I need it to accept the following ä,ö,ü,ß characters too.  

How can I adjust the above line to cater for this?

Many Thanks
0
Comment
Question by:Shafiq Khan
2 Comments
 
LVL 42

Accepted Solution

by:
sedgwick earned 500 total points
ID: 38831542
try this:

bValid = bValid && checkRegexp( name, /^[A-Z0-9 _äöüß]*$/i, "Name is missing" );

Open in new window

0
 
LVL 1

Author Closing Comment

by:Shafiq Khan
ID: 38831601
Many Thanks Sedwick.  That did the trick!
0

Featured Post

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

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

Suggested Solutions

Introduction JSON is an acronym for JavaScript Object Notation.  It is a text-string data transport mechanism, capable of representing simple or complex data structures in a consistent and easy-to-read manner.  Similar in concept to XML, but more e…
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn how to dynamically set the form action using jQuery.
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)

749 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