SyntaxFix
Write A Post
Hire A Developer
Questions
If by "empty", you mean with no HTML content,
if($('#element').html() == "") { //call function }