It me again. I'm trying to get the new text value ...
# javascript
f
It me again. I'm trying to get the new text value from an input, when the user types. How to do this in Kotlin?
onClickFunction = {
println(it.target.value)
}
Doesn't work
a
Hi! Try this
Copy code
onClickFunction = {
    val target = it.target as HTMLInputElement
    println(target.value)
}