Get value from hidden inputs with same name
<p>How I can get value from cName inputs:</p>

<pre><code>&lt;form method="post" action=""&gt;
  &lt;input type="hidden" name="cName" value="test1" /&gt;
  &lt;input type="submit" name="get" /&gt;
&lt;/form&gt;

&lt;form method="post" action=""&gt;
  &lt;input type="hidden" name="cName" value="test2" /&gt;
  &lt;input type="submit" name="get" /&gt;
&lt;/form&gt;
</code></pre>

<p>I want when I click get with jquery or javascript to get value from cName.</p>
