Passing ID into function instead of hard code

Passing ID into function instead of hard code

Hi, 
I manage to get it works by pressing a button and a value will load into a textbox. Here is my code

  1. <asp:TextBox ID="txtResult" runat="server"></asp:TextBox><br />       
  2. <input id="btn7" type="button" value="7" onclick="PassInput()" />
and my function is 

  1.  function PassInput() {

  2.       $.ajax({
  3.          type: "POST",
  4.          url: "VB.aspx/GetInput",
  5.          data: '{name: "' + $("#btn7")[0].value + '" }',
  6.          contentType: "application/json; charset=utf-8",
  7.          dataType: "json",
  8.          success: OnSuccess,

  9.          failure: function (response) {
  10.             alert(response.d);
  11.          }
  12.       });           
  13.    }
  14.    function OnSuccess(response) {
  15.       $("#txtResult").val(response.d);
  16.    }
  17.    function showOutput(data) {
  18.       $("#txtResult").val($("data").val());
  19.    }

But, I do not want to hard code it because I have 10 button , each with different value. How do I pass the ID at  PassInput function and amend line below?

  1.          data: '{name: "' + $("#btn7")[0].value + '" }',
Thanks.