$(document).ready(function () {
$("#txtInParShpChrg").blur( function () {
var Price = $(this).val();
if (Price != "") {
var Exp = /^\d{1,6}(\.\d{0,2})?$/;
var RegValid = new RegExp(Exp);
if (RegValid.test(Price) == false) {
alert("Please Enter Valid Cost...!");
$("#txtInParShpChrg").focus();
}
}
});
});
No comments:
Post a Comment