input decimal html
<input type="number" class="form-control" required name="balance" min="0" value="0" step="any"/>
input decimal html
<input type="number" class="form-control" required name="balance" min="0" value="0" step="any"/>
javascript - How to use limit input to 2 decimal places
//HazaaZOOZ - javascript - How to use limit input to 2 decimal places
var validate = function(e) {
var t = e.value;
e.value = (t.indexOf(".") >= 0) ? (t.substr(0, t.indexOf(".")) + t.substr(t.indexOf("."), 3)) : t;
}
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