title: Call jQuery on buttonclick
body: <p>I'm trying to run some jQuery code when I click a button, but I can't make even the most simple example work.</p>
  <p>My jQuery code is this:</p>
  <pre><code>&lt;script src=&quot;scripts/jquery-1.4.1.js&quot;&gt;&lt;/script&gt;
  &lt;script&gt;
      $('#btn').click(function() {
          alert(&quot;Hello&quot;);
      });
  
  &lt;/script&gt;
  </code></pre>
  <p>and my html looks like this</p>
  <pre><code>&lt;div&gt;
      &lt;input id=&quot;btn&quot; type=&quot;button&quot; value=&quot;button&quot; /&gt;
  &lt;/div&gt;
  </code></pre>
  <p>but when I click the button nothing happens.</p>