Hey all, I’m new to KotlinJS and I have a probably...
# javascript
j
Hey all, I’m new to KotlinJS and I have a probably simple question that I can’t seem to find an answer to online. ~Following along with the docs to get an `<input>`’s value I’m getting a
Warning:(19, 57) Kotlin: This cast can never succeed
on this line of code: `var firstName = document.getElementsByName("firstname") as HTMLInputElement`~ Anyone have any insight? Found my error. I need to look by
id
and not
name