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:
Try this.
$('ul span.num').filter(function(){ return $(this).text() == "0"; }).parent().addClass('disabled');
Demo