Select and Deselect the checkboxs using JQuery
<p>I am using JQuery and I have below HTML with checkboxes in it.</p>

<pre><code> &lt;div class="selectallitems"&gt;
                    &lt;div class="selectall"&gt;
                        &lt;asp:CheckBox ID="chkSelectAll" CssClass="selectall-txt" runat="server" /&gt;
                    &lt;/div&gt;
                    &lt;div id="divCheckAll"&gt;
                        &lt;div class="selectall"&gt;
                            &lt;asp:CheckBox ID="chkItemLists" CssClass="selectall-txt-1" runat="server" /&gt;
                            &lt;div class="clear"&gt;
                            &lt;/div&gt;
                        &lt;/div&gt;
                        &lt;br /&gt;
                        &lt;div class="selectall"&gt;
                            &lt;asp:CheckBox ID="chkComponentLinks" CssClass="selectall-txt-1" runat="server" /&gt;
                            &lt;div class="clear"&gt;
                            &lt;/div&gt;
                        &lt;/div&gt;
                        &lt;br /&gt;
                        &lt;div class="selectall"&gt;
                            &lt;asp:CheckBox ID="chkResourceKeyData" CssClass="selectall-txt-1" runat="server" /&gt;&lt;/div&gt;
                        &lt;br /&gt;
                    &lt;/div&gt;
                &lt;/div&gt;
</code></pre>

<p>Now I want whenever user selects "chkSelectAll" then it should select all other checkboxes and whenever user deselect any of them it should deselect the "chkSelectAll".</p>

<p>Please suggest!!</p>
