Ver original<input type="text" value="100.000" onfocus="this.value = /^\d+$/i.replace(function(num){return num;}" />