Error: uncaught exception: Syntax error, unrecognized expression: $
<p>I need help on this.</p>

<p>This is my code:</p>

<pre><code>function addEntrance(ent) {
    ent.parent('tr').after($('.entrance.default').clone().removeClass('default'));
}

$('.add-entrance').click(function() { 
    addEntrance($(this));
});
</code></pre>

<p>And this is the error when I click <code>&lt;a href="#" class="add-entrance"&gt;</code>:</p>

<pre><code>Error: uncaught exception: Syntax error, unrecognized expression: $
</code></pre>

<p>Thanks!</p>
