Solved

Jquery Form to Accept German Characters

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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Introduction A frequently asked question goes something like this:  "I am running a long process in the background and I want to alert my client when the process finishes.  How can I send a message to the browser?"  Unfortunately, the short answer …
PROBLEM: The other day I was working on adding an ajax request to a webpage that already had a dialog box on the page.  The dialog box was using relative positioning to be positioned next to a form field I had on the page.  Everything was working…
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…

746 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

12 Experts available now in Live!

Get 1:1 Help Now