html javascript input numbers only

45

html javascript input numbers only -

<input type="text" oninput="this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\..*?)\..*/g, '$1');" />

Comments

Submit
0 Comments