JQUERY .each --- detecting if EACH finds 0
Posted
by nobosh
on Stack Overflow
See other posts from Stack Overflow
or by nobosh
Published on 2010-03-08T04:12:39Z
Indexed on
2010/03/08
4:21 UTC
Read the original article
Hit count: 193
jQuery
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
© Stack Overflow or respective owner