< input onkeyup= "this.value=this.value.replace(//D/g,'')" onafterpaste= "this.value=this.value.replace(//D/g,'')" >