For the following input element:
<input type="number" id="input">
Instead of:
document.getElementById('inpupt').value
// '12'
You can do:
document.getElementById('inpupt').valueAsNumber
// 12
For the following input element:
<input type="number" id="input">
Instead of:
document.getElementById('inpupt').value
// '12'
You can do:
document.getElementById('inpupt').valueAsNumber
// 12
For further actions, you may consider blocking this person and/or reporting abuse
Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.
Chris -
Ayub✌🏾 -
Patricio Salazar -
danielroncaglia -
Top comments (0)