How do i use input values in a form? when i set th...
# javascript
i
How do i use input values in a form? when i set the
Copy code
onChangeFunction
the event.target is of type
EventTarget?
which has no value field.
I think i got it ...
Copy code
val input = it.target as HTMLInputElement
👌 1
t
In common case you case use
unsafeCast
to avoid redundant checks (like in your case)