I am using input type number. How can I get the value from this when it is not valid. For example, using the type number and printing only "e", which is not valid in itself.
I use React, but I think this question is very general.
onChange(event) {
console.log(event.target.value)
}
<form novalidate>
<input type="number" onChange={this.onChange}>
</form>
source
share