title: Set Value of Dijit.Form.Textarea
body: <p>I have a dijit dialog that contains a form that I want to auto-populate. I can get the dialog to display with the form in it, but I have been unable to set the value of a text area within the form. Here is the div that houses the html. </p>
  
  <pre><code>&lt;div dojoType="dijit.Dialog" id="formDialog" title="Form Dialog" &gt;
  &lt;table&gt;
      &lt;tr&gt;
          &lt;td&gt;
              &lt;label for="desc"&gt;
                  Description:
              &lt;/label&gt;
          &lt;/td&gt;
          &lt;td&gt;
  
          &lt;textarea id="desc" name="desc" dojoType="dijit.form.Textarea" style="width:200px;"&gt;&lt;/textarea&gt;
  </code></pre>
  
  <p>
          
          
              
                  
                      SAVE
                  
                  
                      CLOSE
                  
              
          
      
  </p>
  
  <p>I can get this to display just fine by doing </p>
  
  <p>var formDlg = dijit.byId("formDialog"); 
  formDlg.show();</p>
  
  <p>But the issue I have is setting the value of the textarea called "desc". I have tried multiple things, but I know I need to </p>
  
  <pre><code>var test = dijit.byId("desc");
  </code></pre>
  
  <p>but if I set any property of test, such as</p>
  
  <pre><code>   test.value = "foo";
     test.textContent = "foo";
     test.innerHTML = "foo";
     test.srcNodeRef = "foo";
  </code></pre>
  
  <p>The value is never saved and displayed inside the textarea. Is there a trick to doing this? Any help would be great. Thanks</p>