title: html target iframe using jquery
body: <p>In the following code after submitting the form I need to stay on the same page so I say my target is iframe.</p>
  
  <p>But after I get the response I need to populate a text area how can I do it. What's wrong with the code below?</p>
  
  <pre><code>&lt;script&gt;
      //After I get a response
      $("#result").html("This is your result"); //Textarea not populated
  &lt;/script&gt;
  
  &lt;form  method="POST" enctype="multipart/form-data" id="contentform" action="/dg/execute_model/" target="upload_target" onsubmit="return validate();"&gt;{% csrf_token %}
      &lt;b&gt;
          &lt;table class="cat-tab" cellspacing="0" cellpadding="0" border="0"&gt;
              &lt;tr&gt;
                  &lt;td&gt;&lt;font&gt;*&lt;/font&gt;Test data&lt;/td&gt;
                  &lt;td&gt;&lt;input type="file" name="test_file" id="test_file" /&gt;&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;td&gt;&lt;/td&gt;
                  &lt;td&gt;&lt;input type="submit" value="Build" id="addbtn" /&gt;&lt;/td&gt;
              &lt;/tr&gt;
          &lt;/table&gt;
  &lt;/form&gt;
  
  &lt;iframe id="upload_target" name="upload_target" src="#" style="width:0;height:0;border:0px solid #fff;"&gt;
      &lt;b&gt;&lt;br&gt;Result:&lt;br&gt;&lt;br&gt;&lt;/b&gt;
      &lt;textarea rows="20" cols="100" name="result" id="result" &gt;&lt;/textarea&gt;
  &lt;/iframe&gt;
  </code></pre>