first need to find all img in the sites
$(\"#body\").find(img)
and then check if the img have the \"alt\" attribute, if image have the attribut
This should help get you started:
$("#body img").each(function(){ var $this = $(this); if (!$this.attr("alt")){ //do something } });