How do I invoke button click function in Jquery
<p>I have got the following code in html</p>

<pre><code>      &lt;div class="functionitem" id="viewresult"&gt;&lt;span class="button"&gt;&lt;span&gt;
      &lt;input type="button" class="form_button" value="  View"&gt;&lt;/span&gt;&lt;/span&gt;
       &lt;/div&gt;
</code></pre>

<p>So I try to using the following jquery click function to invoke a method when the button get clicked, this is what I have done</p>

<pre><code>      $("#viewresult:button").click(function () { 
      //methods
          });
</code></pre>

<p>But it's not working, what did I do wrong, please help, thanks</p>
