philchanet
3/21/2017 - 1:33 PM

Hide TR on bootstrapToggle change + update table stripes on row show/hide

Hide TR on bootstrapToggle change + update table stripes on row show/hide

$(function() {
  $('#bootstrapToggleID').change(function() {
      $('.label-accepted').closest('TR').toggleClass("hidden");
      $("tr:not(.hidden)").each(function (index) {
          $(this).toggleClass("stripe", !!(index & 1));
      });
  });
});