jquery array checkbox
<pre><code>var others = $("#6");
others.click(function() {
    $('input:checkbox').attr('checked',false);
    $("#6").attr('checked',true);
});
</code></pre>

<p>I have an array of check boxes which is drawn from database. I want to uncheck other check boxes when a certain check box is ticked in my case checkbox with id #6, and it uncheck a checkbox #6 if other checkbox is check.</p>

<p>The code above is able to uncheck other checkbox but how can I uncheck the checkbox with id 6,once the other checkbox is check.</p>
