I have this line of code:
$(\'#sitesAccordion .groupOfSites\').click(function() { var lastOpenSite = $(this).siblings().hasClass(\':not(.closedTab)\'); c
You can also use jQuery - is(selector) Method:
var lastOpenSite = $(this).siblings().is(':not(.closedTab)');