Checking the Name for valid Characters in JavaScript

Hi all,

Use the following code for check the valid characters in name field.

var filter = /^([a-zA-Z',.\0-9 ])+$/;
if (filter.test(textValue))
{
// ...Code here
}

...S.VinothkumaR.

No comments: