JavaScript: How do I debug in chrome to find out why this code doesn't work?
<p>How do I use the JavaScript console to see why this code:</p>

<pre><code>// Empty info
if ($('.perma-info').text() == '') {
    $('.perma-info').remove();
}
</code></pre>

<p>Doesn't work in this page: <a href="http://dev-indiehaz.tumblr.com/post/22897976111/vans-vw" rel="nofollow">http://dev-indiehaz.tumblr.com/post/22897976111/vans-vw</a></p>

<p>I want it so that if the element is empty, I can remove it.</p>
