How to use this coding in webusercontrol ? if all the controls are inside webusercontrol ?
How to use this coding if allthe controls are nside webusercontrol :

    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title>Untitled Page</title>
        <script src="scripts/jquery-1.5.1.js" type="text/javascript"></script>
       
        <script type="text/javascript">
            $(document).ready(function() {
                $('#chkAll').click(
                 function() {
                     $("INPUT[type='checkbox']").attr('checked', $('#chkAll').is(':checked'));
                 });
             });    
            
         </script>
        </head>
    <body>
        <form id="form1" runat="server">
        <div>
        
            <asp:CheckBox ID="chkAll" runat="server" Text="Check All" />
            <br />
            <br />
            <br />
            <asp:CheckBox ID="CheckBox2" runat="server" Text="1" />
            <asp:CheckBox ID="CheckBox3" runat="server" Text="1" />
            <asp:CheckBox ID="CheckBox4" runat="server" Text="1" />
            <asp:CheckBox ID="CheckBox5" runat="server" Text="1" />
            <asp:CheckBox ID="CheckBox6" runat="server" Text="1" />
        
        </div>
        </form>
    </body>
    </html>
How to use this coding in webusercontrol ? if all the controls are inside webusercontrol ?
===

How to use this coding if allthe controls are nside webusercontrol :

    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title>Untitled Page</title>
        <script src="scripts/jquery-1.5.1.js" type="text/javascript"></script>
       
        <script type="text/javascript">
            $(document).ready(function() {
                $('#chkAll').click(
                 function() {
                     $("INPUT[type='checkbox']").attr('checked', $('#chkAll').is(':checked'));
                 });
             });    
            
         </script>
        </head>
    <body>
        <form id="form1" runat="server">
        <div>
        
            <asp:CheckBox ID="chkAll" runat="server" Text="Check All" />
            <br />
            <br />
            <br />
            <asp:CheckBox ID="CheckBox2" runat="server" Text="1" />
            <asp:CheckBox ID="CheckBox3" runat="server" Text="1" />
            <asp:CheckBox ID="CheckBox4" runat="server" Text="1" />
            <asp:CheckBox ID="CheckBox5" runat="server" Text="1" />
            <asp:CheckBox ID="CheckBox6" runat="server" Text="1" />
        
        </div>
        </form>
    </body>
    </html>