There's a form in an HTML page:
<form id="mainForm">
<input type="text">
</input>
</form>
and I can address that form in scala.js just fine via
dom.document.getElementById("mainForm")
Next I want to call
.send()
on the form to submit it. However, "send()" is not available as the
.getElementById()
from above returns an "Element" not an "HTMLFormElement", hence "send()" is not available.
How can I get/access the form "as" an "HTMLFormElement"?