How to change the gridview row colors in onclick event in javascript?

前端 未结 3 2034
执笔经年
执笔经年 2021-01-25 13:18

I wrote the following GridView code in ASP.NET. I set the AlternatingRow style\'s BackColor to bisque. The remaining rows are set to white

3条回答
  •  醉话见心
    2021-01-25 14:06

    in ur function use the row object to get the rows to loop over them and return them to there default color
    
      function ChangeRowColor(row) 
         {   
    
              var rows = row.parentNode.getElementsByTagName('TR');
              //loop over all rows and set there colors to default
              for(var i =0;i

    Regards

提交回复
热议问题