title: How to change the text value of an input inside an element in jQuery
body: <p>I have a JavaScript function that goes and gets me a form from another page on the same site. It returns an HTML element (the form) and everything in it. Inside that form, there is an input with no value.</p>
  
  <p>Let's say we have this:</p>
  
  <pre><code>var form = $(data).filter("form")[0];
  </code></pre>
  
  <p>Now form has an html element that is the form. The form itself has an input element inside it.</p>
  
  <p>I would like to be able to do something like:</p>
  
  <pre><code>$(form.input).text("something new");
  </code></pre>
  
  <p>and have that change the value of the input inside the form which is <em>not</em> on the page but inside a variable.</p>
  
  <p>Just want to clarify again that the form (in the variable form) is not on the page, it is saved inside a variable.</p>