title: How to capture value from div and display it in another
body: <p>I have a div with id countsLeft that contains a number (<code>&lt;div id="countsLeft"&gt;10000&lt;/div&gt;</code>) obtained from another div as follows:</p>
  
  <pre><code>var countsLeft = $('#countsLeft').text();
  </code></pre>
  
  <p>I want to display this number in another div with id finalMessage via jQuery. What I did is: </p>
  
  <pre><code>var finalMessage = 'Thank you, there are ' + countsLeft + ' counts left.;
  $('#finalMessage').html(finalMessage); // Same result with .text()
  </code></pre>
  
  <p>This code brings me the following message:</p>
  
  <pre><code> Thank you, there are [HtmlDivObject] counts left.
  </code></pre>
  
  <p>How can this message display the actual numbers instead of this object? </p>