Answers for "form only number input"

0

input number only html

<input type="text" oninput="this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\..*?)\..*/g, '$1');" />
 Run code snippet
Posted by: Guest on October-27-2021
1

html input box integer only

<input type="number" name="someid" />
Posted by: Guest on March-10-2020

Browse Popular Code Answers by Language