Skip to content

Instantly share code, notes, and snippets.

@osmyn
Created February 22, 2019 15:10
Show Gist options
  • Save osmyn/56f5e16cfc38e9814ec053aecfed6eac to your computer and use it in GitHub Desktop.
Save osmyn/56f5e16cfc38e9814ec053aecfed6eac to your computer and use it in GitHub Desktop.
Recalculates a bootstrap table's row shading after rows hidden
$("tr:visible").each(function (index) {
$(this).css("background-color", !!(index & 1) ? "rgba(0,0,0,0)" : "rgba(0,0,0,.05)");
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment