title: How to get text in a specific <li> element in jQuery?
body: <p>I want to get the text of an <code>&lt;li&gt;</code> element through array.</p>
  
  <p>I already tried this:</p>
  
  <pre><code>$('#demo').text($('li').get(2));
  </code></pre>
  
  <p>But it only results:</p>
  
  <pre><code>[object HTMLLIElement]
  </code></pre>
  
  <p>How would I access a specific <code>&lt;li&gt;</code> through array?</p>