uncheck a checked checkbox with jquery in asp.net
<p>I have several checkboxes inside an UpdatePanel of asp.net</p>

<p>Let's say, I have 3 checkboxes in that panel. Each time, one checkbox is checked, the previous checked checkbox will be unchecked. </p>

<p>I have tried like this:</p>

<pre><code>&lt;asp:CheckBox ID="CheckBoxExport1" CssClass="checkboxSingle" /&gt;                                     

&lt;asp:CheckBox ID="CheckBoxExport1" CssClass="checkboxSingle" /&gt;                                     

&lt;asp:CheckBox ID="CheckBoxExport1" CssClass="checkboxSingle" /&gt; 
</code></pre>

<p>In js:</p>

<pre><code> $('.checkboxSingle').live('click', function (e) {

        if ($(this).is(':checked')) {
            $(".checkboxSingle").attr('checked', false);
            $(this).attr('checked', 'checked')
        }
    });
</code></pre>

<p>The click is function but the rest does not. Thanks in advance</p>

<p>Thanks in advance.</p>
