Select the first element before by jQuery
<p>I have a problem in selecting the first element before another one that is not in the same tag</p>

<p>Example:</p>

<pre><code>&lt;div&gt;
    &lt;p&gt;Hello&lt;/p&gt;
&lt;/div&gt;

&lt;div&gt;
    &lt;form&gt;
        &lt;input /&gt;
    &lt;/form&gt;

    &lt;div&gt;
        ...
        &lt;div class="thisone"&gt;&lt;/div&gt;
    &lt;/div&gt;
</code></pre>

<p>Whatever is the HTML Structure of the page i would like to select the first input before the div with the class "thisone"</p>
