I have a class that initiate this function…but I need to modify it’s regex.
I would like to exclude all alphabetic characters and any numbers beginning with 0[zero].
$('.numeric').keyup(function () {
$(this).toggleClass('field-error', /(0|00|000)$/.test(this.value));
});
Jquery Code:
HTML Code:
Maybe it’s what you want…