I would like to use Jquery to add a class to \"li\" element that contains a \"span\" element with a html/val equal to zero.
For Example if my code looks like this:
Here's a fast way to to it:
$('li .num').each(function(){ if ( $(this).text() == '0') $(this).parent().addClass('disabled'); });
With a jsFiddle example.