Selecting a tag in jQuery
Say we have html
<ul>
<li>First</li>
<li>Second</li>
<li>Third</li>
<li>Fourth</li>
<li>Fifth</li>
</ul>
<ul id="results">
</ul>
Then if I try
$('<li>').text('hi');
nothing happens. What does $('<li>') do as opposed to $('li')? Thanks.