JQUERY .each --- detecting if EACH finds 0
- by nobosh
I have the following:
$("span.findme").each(function() {
$("<li>").text($(this).text()).appendTo("ul");
});
How can I, using the above, detect if EACH finds 0, if it's 0 I want to trigger an alert.
Thanks