Created
April 8, 2018 18:18
-
-
Save tannerkrewson/2e1057f4d0a4ecf2d35fc40106daad29 to your computer and use it in GitHub Desktop.
banner class list filter
This file contains hidden or 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
$('.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