How to create a table row on selecting a gridview checkbox using javascript
<p>I'm using a gridview with checkboxes and i need to create a table row out of it on checking any of the checkboxes in the gridview. I need help to get the selected row of the gridview using javascript.</p>

<p>GridView Source Code</p>

<pre><code>&lt;asp:GridView ID="GrdCustomer" runat="server" BorderColor="#999999" CellPadding="3"
        ForeColor="Black" GridLines="Vertical" Width="640px" AllowPaging="True" AutoGenerateColumns="False"
        OnRowDataBound="GrdCustomer_RowDataBound"&gt;
        &lt;Columns&gt;
            &lt;asp:TemplateField HeaderText="Select" ItemStyle-Width="50px"&gt;
                &lt;ItemTemplate&gt;
                    &lt;input id="selector" onclick="javascript:bindToList(this);selectCustomers();" runat="server" type="checkbox" /&gt;
                &lt;/ItemTemplate&gt;
                &lt;HeaderTemplate&gt;
                    &lt;input id="selector" onclick="javascript:SelectDeselectAllCheckboxes(this);selectCustomers(); " runat="server"
                        type="checkbox" /&gt;
                &lt;/HeaderTemplate&gt;
                &lt;ItemStyle Width="50px" HorizontalAlign="Center"&gt;&lt;/ItemStyle&gt;
            &lt;/asp:TemplateField&gt;
            &lt;asp:BoundField DataField="Salutation" HeaderText="Salutation"&gt;
                &lt;ItemStyle HorizontalAlign="Center" /&gt;
            &lt;/asp:BoundField&gt;
            &lt;asp:BoundField DataField="Name" HeaderText="Client Name"&gt;
                &lt;ItemStyle HorizontalAlign="Center" /&gt;
            &lt;/asp:BoundField&gt;
            &lt;asp:BoundField DataField="Address" HeaderText="Address" SortExpression="Email"&gt;
                &lt;ItemStyle HorizontalAlign="Center" /&gt;
            &lt;/asp:BoundField&gt;
            &lt;asp:BoundField DataField="Title" HeaderText="Title"&gt;
                &lt;ItemStyle HorizontalAlign="Center" /&gt;
            &lt;/asp:BoundField&gt;
            &lt;asp:BoundField DataField="Id" HeaderText="Id" /&gt;
        &lt;/Columns&gt;
        &lt;FooterStyle BackColor="#CCCCCC" /&gt;
        &lt;PagerStyle BackColor="#999999" ForeColor="Black" /&gt;
        &lt;SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" /&gt;
        &lt;HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" /&gt;
        &lt;AlternatingRowStyle BackColor="#CCCCCC" /&gt;
    &lt;/asp:GridView&gt;
</code></pre>

<p>Basic script being called on checkbox check state (only started)</p>

<pre><code> function selectCustomers() {
        alert("Hey I'm over here!!!");
    }
</code></pre>
