Issues with basic Java Script
<pre><code>&lt;p id="test"&gt;lol&lt;/p&gt;

&lt;script type="text/javascript"&gt;
var text = $('test').text();
var comparingText = 'lol';

if (text == comparingText) {
document.write('haha');
}
&lt;/script&gt;
</code></pre>

<p>Why will not this work ?
Have even tried using "<code>IF NOT</code>"..</p>
