javscript how to check if an html element is not empty code example Example: js check if div is empty if ($('#element').is(':empty')){ //do something }