Flag empty div as empty

Add a class to an empty element. Below is an example where, if the heading field *h1) is empty, then add a class to the parent heading element.

if( $("#heading h1").is(':empty') ) { $("#heading").addClass("empty");}

Index Previous Next