[SOLVED] Can't get value of textarea and input

As said in title i can’t get value of textarea and input.
First i get the elements:

final cont = js.Browser.document.getElementById("cont");
final nick = js.Browser.document.getElementById("nick");

But they both doesn’t have “value”. I have seen js.html.InputElement, but i do not know how to convert js.html.Element into it.

Try this:

import js.html.TextAreaElement;
...
final cont:TextAreaElement = cast document.getElementById("cont");
cont.value;
1 Like

Thank you, it helped.