Why doesn't jQuery $(this).text() work inside a link?
<p>Any ideas why this doesn't work?</p>

<pre><code>&lt;a href="javascript:alert($(this).text())"&gt;Alert This Text Here&lt;/a&gt;
</code></pre>

<p>I am expecting it to alert "Alert This Text Here", but instead I get a jQuery error (G is undefined)</p>

<p>What am I missing?</p>
