Styling views table - Toogle row class on click
First of all you need to add custom class to your VIEWS wrapper and also for TABLE ROW.
I have added my-view-wrapper for the VIEWS and row-wrapper for TABLE ROW




Add CLASS to your VIEWS


Add CLASS to your TABLE ROW







(function ($) {
  Drupal.behaviors.viewRowHighlight = {
    attach: function (context, settings) {
      $('.my-view-wrapper .row-wrapper').click(function(e){
        $(this).toggleClass('clicked');
      });
    }
  };
})(jQuery);