title: I have a btnSave button i want to call this btnSave_Click method on click of an input button btnmore through jquery how can i do that
body: <p></p>
  
  <pre><code>&lt;html xmlns="http://www.w3.org/1999/xhtml" &gt;
  
  &lt;head id="Head1" runat="server"&gt;
      &lt;title&gt;Jquery&lt;/title&gt;
  
      &lt;script type="text/javascript" src="scripts/jquery-1.4.2.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript"&gt;  jQuery(document).ready(function () {
  
           $('#btnmore').click(function () {  
            $('&lt;%=btnSave.ClientID%&gt;').click(); 
            alert('done');
           $.ajax({type: 'POST',
                  contentType: 'application/json; charset=utf-8',
                  data: '{}',
                  dataType: 'json',
                  url: 'Default.aspx/btnSave_Click',
                  success: function(result){
  
                                              alert(result);} });   
           });
          });&lt;/Script&gt; 
  &lt;/head&gt;
  &lt;body&gt;
      &lt;form id="form1" runat="server"&gt;
      &lt;asp:scriptManager id="script1"&gt;&lt;/asp:scriptManager&gt;
      &lt;div&gt;
          &lt;table&gt;
  
              &lt;tr&gt;
                  &lt;td&gt;
                      &lt;asp:Button ID="btnSave" runat="server" Text="Save" OnClick="btnSave_Click" /&gt;
  
                      &lt;input type="button" id="btnmore" value="More" /&gt;
                  &lt;/td&gt;
  
              &lt;/tr&gt;
          &lt;/table&gt;
      &lt;/div&gt;
      &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p><strong>Server side code</strong></p>
  
  <pre><code>using System;
  using System.Data;
  using System.Configuration;
  using System.Web;
  using System.Web.Services;
  using System.Web.Security;
  using System.Web.UI;
  using System.Web.UI.WebControls;
  using System.Web.UI.WebControls.WebParts;
  using System.Web.UI.HtmlControls;
  public partial class _Default : System.Web.UI.Page 
  {
      protected void Page_Load(object sender, EventArgs e)
      {
  
      }
  
      [WebMethod]
      public static string MyMethod()
      {
          return "abc";
      }
  
  
      [WebMethod]
      protected void btnSave_Click(object sender, EventArgs e)
      {
          Response.Write("abc");
      }
  }
  </code></pre>