I am using repeater to display data from database and using checkboxes.But I am not getting values of multiple selected checkboxes..please help
<pre><code>&lt;script type="text/javascript"&gt;
            function collect() {
                alert('in function');
                var adds = new Array();
                alert(adds);
        for (var i = 0; i &lt; control.getElementByName("box").value; i++) {
            alert('innn function');
            if (control.getElementByName("box[i]").checked)
                adds = control.getElementByName("box[i]").value;
        }
        alret(adds);
        //window.location="/collect.aspx?value="+adds;
        control.getElementByName("Label1").appendChild(adds);

        } 
&lt;/script&gt;
</code></pre>

<p>calling function on button:</p>

<pre><code>  &lt;asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Button" OnClientClick="collect() "/&gt;
</code></pre>
