mobile number validation in javascript

mobile number validation is very important topic in javascript , we are try to say how to use mobile number validation in javascript , i think this is very useful for you thanks

function mobileNoValidation(){var mobile=document.getElementById(‘mobile’).value ;var reg = /^([0-9]{10,10})$/;if(reg.test(mobile) == false) {alert(‘Please Enter Valid mobile number’);return false;}}

code copy and use :

function mobileNoValidation()
var mobile=document.getElementById(‘mobile’).value ;

var reg = /^([0-9]{10,10})$/;

if(reg.test(mobile) == false) {

alert(‘Please Enter Valid mobile number’);
return false;

posted by:  Rajeev Dhar Dwivedi


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s