jQuery - Prepend to div not working
<p>I'm trying to prepend a span containing a bootstrap glyphicon to the start of a div's content but the icon isn't showing.</p>

<p>Anything wrong with this JS?:</p>

<pre><code>$(formMessages).prepend('&lt;span class=\"glyphicon glyphicon-ok\"&gt;&lt;/span&gt;');
</code></pre>

<p>EDIT: formMessages IS meant to be a variable, not a class or id. The only line of the following that doesn't work is the prepend:</p>

<pre><code>.done(function(response) {
        $(formMessages).css('display', 'block');
        $(formMessages).removeClass('alert-danger');
        $(formMessages).addClass('alert-success');
        $(formMessages).prepend('&lt;span class="glyphicon glyphicon-ok"&gt;&lt;/span&gt;');
        $(form).css('display', 'none');

        $(formMessages).text(response);
</code></pre>