title: jquery: save form response from hidden iframe to variable
body: <p>heyho,</p>
  
  <p>i have a form which i send to a script on action. the response is stored to a hidden iframe in pre-tags. i want to store the html-text answer to a variable with jquery. but the question is how and when :-)! onsubmit is to early.. can you help?</p>
  
  <pre><code>&lt;form id="search" action="http://xyzsearchurl"  target="result"&gt;
  &lt;input type="text" name="qparam" /&gt;
  &lt;input type="submit" /&gt;
  &lt;/form&gt;
  &lt;iframe id="result" name="result" src="#" style="display:none;"&gt;&lt;/iframe&gt;
  
  $('#search').submit(function(){
      alert($('#result pre').html());
  });
  </code></pre>
  
  <p>any ideas how to get the Text form the pre tag AFTER get the response?</p>
  
  <p>thanks a lot </p>