Jquery sample code that changes the tr background color

  • 2020-03-30 01:05:36
  • OfStack

Id is the id of tr

Sets the current selected row background color and sets the other row backgrounds to a different color


$('#id').css("background-color", "#e5e5e5").siblings().css("background-color", "#FFFFFF");  


Related articles: