function AllowOnlyNumbers(evt) {
        var charCode = (evt.which) ? evt.which : event.keyCode
        if (charCode > 31 && (charCode < 48 || charCode > 57)){
            if (charCode === 8 && charCode === 46) {
                return false;
            }
        }
        return true;
    }
How to allow only numbers and delete key or backspace to be written in this textbox ? 
 
    