Javascript String isdigit()
isdigit()
String.prototype.isdigit = function() { return this.length && !(/\D/.test(this)); };