Using foreach loop to print all results
<p>I'm new to jQuery and I have got stuck on an each loop. </p>

<p>I'm trying to get the values from a variable with objects and when I print it using <code>alert()</code>, I get all the results.</p>

<p>But when I'm trying to print it to the HTML I only get the last result printed to the HTML instead of 3, in this case. </p>

<pre><code>$.each(playlist, function(index, item) {
    alert(item.title);
    $('.playlist1').text(item.title);
}); 
</code></pre>
