score:0

you could take advantage of the scalajs event passed in, maybe something like:

oninput={ev: event => name.value = ev.target.asinstanceof[htmlinputelement].value}

score:1

i actually have the same problem. i have 2 ways dealing with it:

  1. ignore these exception - as they are only a problem within intellij (it compiles just fine).
  2. use for example jquery like this:

    import org.scalajs.jquery.jquery 
    ..
    jquery("#showcheckbox").value()
    

    as soon as your id gets more dynamic - you will need something like that anyway (at least that is what i know;)) -> jquery(s"#${elem.id}").value().


Related Query

More Query from same tag