How to iterate over all input hidden values using $.each
<p>I want to do something with each hidden input value, so I coded the following javascript using <a href="http://api.jquery.com/jQuery.each/" rel="nofollow">jQuery</a>.</p>

<pre><code>$.each($("input[type='hidden']"), function (index, value) {
    alert(value.val());
});
</code></pre>

<p>But I get he following execution error: <code>value.val is not a function.</code></p>

<p><strong>What am I doing wrong?</strong></p>
