Static types for the jQuery API for Scala.js programs.
Add the following to your SBT build:
libraryDependencies += "io.udash" %%% "udash-jquery" % "0.2.0"
then import jQuery package:
import io.udash.wrappers.jquery._
import io.udash.wrappers.jquery._
val element: JQuery = jQ("#id")
element.text("Text content")
element.attr("example-attr", "value")
element.attr("example-attr") match {
case Some(value) => println(s"Attribute value: $value")
case None => println("Attribute not found!")
}