Uncaught SyntaxError: Unexpected identifier with .append() string
<p>I keep getting this error in the <code>$('#savetickets-list')</code> line. I want to dynamically add fields to a table, the table has the id in HTML.</p>

<pre><code>&lt;div class="savetickets-list"&gt;
&lt;/div&gt;
</code></pre>

<p>In javascript I fill the table in a for loop</p>

<pre><code>for (var i = 0; i &lt; len; i++) {
    // the data comes from a web database
    var ticketname = results.rows.item(i).iTicketName;

    $('#savetickets-list').append('
        &lt;div class="saveticket gradient-top"&gt;
            &lt;h3&gt;' + ticketname + '&lt;/h3&gt;
        &lt;/div&gt;
    ');
}   
</code></pre>

<p>I dont know how to solve this. jQuery is loaded, I also checked the name of the selector.</p>

<p>Please help.</p>
