title: Check if div has html elements inside
body: <p>I was just wondering how can I check if a div has no children because I need to place a placeholder text if the element does not load into the specified div.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>var test = ($('#'+chartId)).children().length;
  console.log(test);
  if(test==""){
      alert('empty');
  }
  else{
      alert('present');
  }
  </code></pre>
  
  <p>Will this work if I'm trying to detect if a flash component is being loaded to a div?</p>