input number only html
<input type="text" oninput="this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\..*?)\..*/g, '$1');" />
Run code snippet
input number only html
<input type="text" oninput="this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\..*?)\..*/g, '$1');" />
Run code snippet
input text tag only input integer number
<input type="text" class="number" />
<script>
function degitOnly(e){
var unicode = e.charCode ? e.charCode : e.keyCode;
if (unicode!=8 && unicode!=9)
{
if (unicode<46||unicode>57||unicode==47)
return false
}
}
$(".number").inputFilter(function(value) {
return /^-?\d*$/.test(value);
});
</script>
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us