The definite answer is this:
function preventDot(e) {
var key = e.charCode ? e.charCode : e.keyCode;
if (key == 46) {
e.preventDefault();
}
}
And bind it on keypress
solved Don’t let a user type the period character in an HTML5 input type number