<form:input path="count" class="form-control input1" type="number" οnkeyup="(this.v=function(){this.value=this.value.replace(/[^0-9.]+/,'');}).call(this)" οnblur="this.v();"/>