Skip to content

Instantly share code, notes, and snippets.

@tannerkrewson
Created April 8, 2018 18:18
Show Gist options
  • Save tannerkrewson/2e1057f4d0a4ecf2d35fc40106daad29 to your computer and use it in GitHub Desktop.
Save tannerkrewson/2e1057f4d0a4ecf2d35fc40106daad29 to your computer and use it in GitHub Desktop.
banner class list filter
$('.datadisplaytable > tbody > tr').each(function() {
var first = $(this).children(":first").html();
if ($(this).children().length === 20 && first !== "Select" && first !== " ") {
var days = $(this).children().eq(8).html().trim().length;
var hours = parseInt($(this).children().eq(6).html());
if (days !== 1 || hours < 3) {
$(this).detach();
}
} else {
$(this).detach();
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment