I have write a validate rules in jquery which check only digits, now i want to add new validation rules is that first three digit alpha then 6 digit numeric in jquery. How can i do this. here is my only digits validation code here.
$(".mrn").keypress(function (e) {
//if the letter is not digit then display error and don't type anything
if (e.which != 8 && e.which != 0 && (e.which < 48 || e.which > 57)) {
//display error message
$("#errmsg").html("Digits Only").show().fadeOut("slow");
return false;
}