I\'m searching a solution to remove tags filtered using javascript array.
Array:
var mygroups=[\"1\",\"8\",\"3\",\"4\",\"5\"]
This works
$("li").each(function() { if($(this).find("a").size() == 0) { $(this).remove(); }; });