How do I get text/html between consecutive <input>s?
<p>Since input tags aren't supposed to have closing tags, is there a simple way to extract the text/HTML in between a series of input tags? For example, for the below I want to retrieve <code>&lt;b&gt;Bob and Tim&lt;/b&gt;&lt;br&gt;Tim &lt;i&gt;after&lt;/i&gt; Bob&lt;br&gt;</code>.</p>

<pre><code>&lt;div id="inputs"&gt;
    &lt;input type="text" value="bob" size="4" /&gt;
    &lt;b&gt;Bob and Tim&lt;/b&gt;&lt;br&gt;
    &lt;input type="text" value="tim" size="4" /&gt;
    Tim &lt;i&gt;after&lt;/i&gt; Bob&lt;br&gt;
    &lt;input type="button" value="get textbox values" id="mybutton" /&gt;
&lt;/div&gt;​
</code></pre>

<p><a href="http://jsfiddle.net/gLEZd/5/" rel="nofollow">http://jsfiddle.net/gLEZd/5/</a></p>

<p>I can get the textbox's values, but how do I accomplish the above?</p>
