10stellige Validierung in JQuery
$("#phone_num").on("blur", function(){
var mobNum = $(this).val();
var filter = /^\d*(?:\.\d{1,2})?$/;
if (filter.test(mobNum)) {
if(mobNum.length==10){
alert('Propper Value.');
} else {
alert('Please put 10 digit phone number');
return false;
}
} else {
alert('Not a valid number');
return false;
}
});
Rht