title: jQuery .remove() and last-child not working as expected
body: <p>I've got this code which is working ok. The new piece of data is coming in ok but when the number of p's gets to 3, nothing happens. The last item doesnt get removed and no new items get appended.</p>
  
  <p>Any ideas?</p>
  
  <pre><code>setInterval(function() {
                $.post(
                  'json.php', 
                  function(data){
                      $('#tweetBox').append('&lt;p&gt;' + data + '&lt;/p&gt;');
                      var list = $('#tweetBox p').length;
                      if (list &gt; 3){
                          $('#tweetBox p:last-child').remove();
                      }               
                  }
              );
          }, 5000);
  </code></pre>