jQuery: Why would selector fail?
<pre><code>&lt;html&gt;
 &lt;head&gt;
  &lt;script src="../jquery.js" type="text/javascript"&gt; &lt;/script&gt;
  &lt;script type="text/javascript"&gt;
   $(".demo").click(function() {
     alert("JavaScript Demo");
    });
  &lt;/script&gt;
 &lt;/head&gt;
 &lt;body&gt;
  &lt;p class="demo"&gt;a paragraph&lt;/p&gt;
 &lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>Why did not the click function response?</p>

<p>Thanks.</p>
