title: How to Handle Button Click Events in jQuery?
body: <p>I need to have a button and handle its event in jQuery. And I am writing this code but it'snot working. Did I miss something?</p>
  
  <pre><code>&lt;!-- Begin Button --&gt;  
  &lt;div class="demo"&gt;
  &lt;br&gt; &lt;br&gt; &lt;br&gt;   
  &lt;input id = "btnSubmit" type="submit" value="Release"/&gt;
  &lt;br&gt; &lt;br&gt; &lt;br&gt;  
  &lt;/div&gt;
  &lt;!-- End Button --&gt;
  </code></pre>
  
  <p>And in the javascript file</p>
  
  <pre><code>function btnClick()
  {
      //    button click
      $("#btnSubmit").button().click(function(){
          alert("button");
      });    
  }
  </code></pre>