There is a function that colors the pressed (active) row in blue by adding a row to the blue_row class. It is necessary to modify the function so that there is only one active row in the table. The row_summary class is the default for all rows. I just started js , so I will be grateful for the detailed answers.
function initTableRows() { $("body").on("click","tr.row_summary", function() { var $trr = $(this); $trr.toggleClass('blue_row'); }); }