taking all input elements value from piece of html
<p>I got an html like this</p>

<pre><code>    &lt;tbody&gt;
    &lt;tr&gt;
        &lt;td &gt;
            &lt;img src="" alt="close" /&gt;
        &lt;/td&gt;
        &lt;td&gt;
        &lt;input type="hidden" name="addproducts" value="141420"&gt;141420
        &lt;/td&gt;
        &lt;td class="prd"&gt;
            &lt;strong&gt;
                &lt;a href=""&gt;&lt;/a&gt;
            &lt;/strong&gt;
        &lt;/td&gt;
        &lt;td&gt;
            &lt;a rel="prettyPhoto" href=""&gt;&lt;img src="" alt="Product"&gt;&lt;/a&gt;
        &lt;/td&gt; 
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td &gt;
            &lt;img src="" alt="close" /&gt;
        &lt;/td&gt;
        &lt;td&gt;
        &lt;input type="hidden" name="addproducts" value="1213143"&gt;1213143
        &lt;/td&gt;
        &lt;td class="prd"&gt;
            &lt;strong&gt;
                &lt;a href=""&gt;&lt;/a&gt;
            &lt;/strong&gt;
        &lt;/td&gt;
        &lt;td&gt;
            &lt;a rel="prettyPhoto" href=""&gt;&lt;img src="" alt="Product"&gt;&lt;/a&gt;
        &lt;/td&gt; 
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td &gt;
            &lt;img src="" alt="close" /&gt;
        &lt;/td&gt;
        &lt;td&gt;
        &lt;input type="hidden" name="addproducts" value="242424"&gt;242424
        &lt;/td&gt;
        &lt;td class="prd"&gt;
            &lt;strong&gt;
                &lt;a href=""&gt;&lt;/a&gt;
            &lt;/strong&gt;
        &lt;/td&gt;
        &lt;td&gt;
            &lt;a rel="prettyPhoto" href=""&gt;&lt;img src="" alt="Product"&gt;&lt;/a&gt;
        &lt;/td&gt; 
    &lt;/tr&gt;
&lt;/tbody&gt;
</code></pre>

<p>I am trying to get values of all "hidden" "input" whose name is "addproducts" in to a string .I have tried some code like below(this code is based on my full html which i can't put here because of size and other problem.if i get the logic to solve this problem i can my self take care of this).</p>

<pre><code>  var txt=    $(this).parent().parent().find(".antal").find("input:hidden[name='addproducts']").each(function () {
           $(this).val() 
        });
    alert(txt);
</code></pre>

<p>but this gives just an object as alert.Can any one give me a hand on this.</p>
