Answers for "only positive numbers and decimals input js"

0

only positive numbers and decimals input js

<input type="text" onkeyup="value=value.replace(/[^0-9^\.]+/g,'').replace('.','$#$').replace(/\./g,'').replace('$#$','.').replace(/^0+/, '')"
  th:placeholder="Please enter xxx"/>
12
Posted by: Guest on April-22-2021

Code answers related to "only positive numbers and decimals input js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language