title: jQuery - Insert text and add string from variable
body: <p>I have the following jQuery:</p>
  
  <pre><code>j(".refreshMe").html(html);
  
  var something = $("li", html).length;
  
  if ( something &gt; 0 ) {
      j('.showlatest').slideDown();
  }
  </code></pre>
  
  <p>and HTML:</p>
  
  <pre><code>&lt;p class="showlatest"&gt;&lt;/p&gt;
  </code></pre>
  
  <p>What I want to happen is,</p>
  
  <pre><code>if ( something &gt; 0 ) {
      j('.showlatest').slideDown();
      ADD THE CONTENTS OF 'something' WITH THE TEXT 'NEW MESSAGES'
  }
  </code></pre>
  
  <p>E.g.</p>
  
  <pre><code>&lt;p class="showlatest"&gt;2 new messages&lt;/p&gt;
  </code></pre>
  
  <p>I suppose I could define the 'New Messages' text as:</p>
  
  <pre><code>var newmessages = "New Messages";
  </code></pre>
  
  <p>But how can I then, in PHP speak, echo the results?</p>