JQuery get input text when using .each() function
<p>I am using JQuery .each() on a list and am wondering how to retrieve the text from an input field within the list item, the code looks like:</p>

<pre><code>&lt;ul id="foo"&gt;
  &lt;li id="1"&gt;
    &lt;input type="text" /&gt;
  &lt;/li&gt;
  &lt;li id="2"&gt;
    &lt;input type="text" /&gt;
  &lt;/li&gt;
&lt;/ul&gt;
</code></pre>

<p>I then need to get the id and text to send to an AJAX call</p>

<pre><code>$(#foo li).each( function() {
  id = this.id; // Works fine
  mytext = ???; // The bit i'm stuck with
  ...
});
</code></pre>

<p>There is only one input control per list item.</p>
