Regex verifica solo los números JS
var ticket = "11122";
var reg = new RegExp('^[0-9]*$');
if (reg.test(ticket)==false) {
alert('Only Numeric Ticket ID is allowed.');
return false;
}
Glorious Grouse