title: Accessing textarea value in Scala.js
body: <p>I'm trying to set the value of a textarea as a simple start with Scala.js. Here's the html:</p>
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
    &lt;head&gt;
      &lt;meta charset=&quot;UTF-8&quot;&gt;
      &lt;title&gt;The Scala.js Tutorial&lt;/title&gt;
    &lt;/head&gt;
    &lt;body&gt;
      &lt;div id=&quot;content&quot;&gt;&lt;/div&gt;
      &lt;textarea id=&quot;text&quot; cols=&quot;75&quot; rows=&quot;12&quot;&gt;letters&lt;/textarea&gt;
      &lt;script type=&quot;text/javascript&quot; src=&quot;./target/scala-2.13/scala-js-tutorial-fastopt.js&quot;&gt;&lt;/script&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  <p>Here's my Scala program:</p>
  <pre><code>package learn.creation
  import org.scalajs.dom
  import org.scalajs.dom.document
  
  object LearnApp {
      def main(args: Array[String]): Unit = {
          println(document.getElementById(&quot;text&quot;).value)
      }
  }
  </code></pre>
  <p>When I compile, I get</p>
  <pre><code>value value is not a member of org.scalajs.dom.raw.Element
  [error] did you mean valueOf?
  [error]         println(document.getElementById(&quot;text&quot;).value)
  [error]                                                 ^
  </code></pre>
  <p>This doesn't work either:</p>
  <pre><code>println(document.getElementById(&quot;text&quot;).valueOf().value)
  </code></pre>
  <p>I can't find any documentation on this (Scala.js's dom documentation is very limited, it's not as simple as rtfm).</p>