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");}

More From This Section

e.g intro to pagebanner
Disable right-click on the site which should disable the context menu on click on android.
Replace Name with First Name and Last Name fields, but keep name field for submission. Merge First/Last to Name on change

FAQ Topics

Search for help:

> Home