JQuery - Set Attribute value
<p>I have following HTML with two elements having the same name</p>

<pre><code>&lt;input type="hidden" name= "chk0" value=""&gt;
&lt;input type="checkbox" name="chk0" value="true" disabled&gt;
</code></pre>

<p>Through JQuery, I want to set the enable the checkbox. So, I am using something like this:</p>

<pre><code>$('#chk0').attr("disabled",false);
</code></pre>

<p>But this doesn't work. I assume JQuery is getting confused with two elements having the same identical name. Unfortunatel, I cannot avoid using two different names because, when the form is posted, I want all the checkboxes to get posted (not just the ones that are checked). Hence I have to use hidden element with the same name.. So, back to the question, how can I enable the checkbox through JQuery in the above scenario? Is there a "type" parameter for attr which distingues hidden from checkbox?</p>

<p>Thanks</p>
