Solved

Jquery Form to Accept German Characters

Posted on 2013-01-29
2
353 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Introduction Got endorsements from your clients?  Great!  There is almost nothing better than word-of-mouth advertising.  But how can you do that on the internet?  Sure you can make a page for endorsement quotations and list them all, but who is …
Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
The viewer will learn how to dynamically set the form action using jQuery.
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…

863 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

Need Help in Real-Time?

Connect with top rated Experts

26 Experts available now in Live!

Get 1:1 Help Now