Solved

Jquery Form to Accept German Characters

Posted on 2013-01-29
2
365 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Forrester Webinar: xMatters Delivers 261% ROI

Guest speaker Dean Davison, Forrester Principal Consultant, explains how a Fortune 500 communication company using xMatters found these results: Achieved a 261% ROI, Experienced $753,280 in net present value benefits over 3 years and Reduced MTTR by 91% for tier 1 incidents.

Question has a verified solution.

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

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
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…

734 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