only positive numbers and decimals input js

Solutions on MaxInterview for only positive numbers and decimals input js by the best coders in the world

showing results for - "only positive numbers and decimals input js"
Federica
22 Mar 2017
1 <input type="text" onkeyup="value=value.replace(/[^0-9^\.]+/g,'').replace('.','$#$').replace(/\./g,'').replace('$#$','.').replace(/^0+/, '')"
2  th:placeholder="Please enter xxx"/>
312