Remove Non numbers in input values in jquery
if (/\D/g.test(this.value))
{
// Filter non-digits from input value.
this.value = this.value.replace(/\D/g, '');
}
{
// Filter non-digits from input value.
this.value = this.value.replace(/\D/g, '');
}