Get input value except the last by jquery
<p>I want getting all value in inputs except the last input in last class <code>.tr</code> by jquery, but it don't work for me, How can fix it?</p>

<p>I try as:</p>

<p><strong>DEMO:</strong> <a href="http://jsfiddle.net/d4xZK/" rel="nofollow">http://jsfiddle.net/d4xZK/</a></p>

<p><strong>HTML:</strong></p>

<pre><code>&lt;div class="tr"&gt;
    &lt;input type="text" value="111"&gt;
&lt;/div&gt;
&lt;div class="tr"&gt;
    &lt;input type="text" value="222"&gt;
&lt;/div&gt;
&lt;div class="tr"&gt;
    &lt;input type="text" value="333"&gt;
&lt;/div&gt;
&lt;div class="tr"&gt;
    &lt;input type="text" value="444"&gt;
&lt;/div&gt;
</code></pre>

<p><strong>jQuery:</strong></p>

<pre><code>$('.tr').each(function(){
    var mpiVal = $('.tr input').not(':last').val();
    alert(mpiVal)
)}
</code></pre>
