I am trying to create a if statement that triggers a alert box if there is text in the div.
My Jsfiddle: http://jsfiddle.net/D7cPT/21/
My HTML:
<div id="post-preview">aasasdasd</div>
MY JQUERY:
$(document).ready(function() {
    // Bind it to some action.
    if{$('#post_body_html').html();) {
       alert('asdasda');
      }
});
 
     
     
     
    