<input maxlength="5" data-rule-maxlength="5" id="megasuperbebra" style="height:17px;width: 243px;" type="number" oninput="javascript: if (this.value.length > this.maxLength) this.value = this.value.slice(0, this.maxLength); this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\..*)\./g, '$1');">