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