Created
February 22, 2019 15:10
-
-
Save osmyn/56f5e16cfc38e9814ec053aecfed6eac to your computer and use it in GitHub Desktop.
Recalculates a bootstrap table's row shading after rows hidden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$("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