Check the valid Email Address using JavaScript

Hi all,

Use the following code for check the valid email address.

var filterEmail = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z])+\.)+([a-zA-Z]{2,4})+$/;
if(filterEmail.test(Email))//Check the Email Format.
{
//..........
}

...S.VinothkumaR.

Check the phone number for valid using JavaScript

Hi all,

Use the following code for checking the valid phone number.

var filter = /^([0-9])+$/;
if (filter.test(textValue))
{
// ...Code here
}

...S.VinothkumaR.

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.