Click here to Skip to main content
15,845,469 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
i have this code

<script type = "text/javascript">
      function Check_Click(objRef) {
          //Get the Row based on checkbox
          var row = bjRef.parentNode.parentNode;
              if (objRef.checked) {
                  var n = row.cells[0].innerHTML;
                  b = document.getElementsByClassName(n);
              else {

i want when i checked second checkbox show previous elements for first checkbox. can you help me ?
Updated 26-Jul-14 20:47pm
SRS(The Coder) 28-Jul-14 0:25am    
Can you please share the html and let us know what you want in the html specifically ?
raana1988 2-Aug-14 1:48am    
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="SqlDataSource1" OnSelectedIndexChanged="GridView1_SelectedIndexChanged" GridLines="None" style="direction:ltr" BorderStyle="None" Font-Names="B Yekan" Font-Size="13px">
<asp:BoundField DataField="color" HeaderText="رنگ" SortExpression="color">

<asp:TemplateField >
<asp:CheckBox ID="myCheckBox" Text="" runat="server" onclick = "Check_Click(this)"/>

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900