title: How to get id of element which called function
body: <p>hi i am newbie in jquery... </p>
  
  <p>i have few anchor link in my project... </p>
  
  <pre><code>&lt;a href="#" id="1" class="delete" onclick="dele()"&gt; Remove1 &lt;/a&gt;
  &lt;a href="#" id="2" class="delete" onclick="dele()"&gt; Remove2 &lt;/a&gt;
  &lt;a href="#" id="3" class="delete" onclick="dele()"&gt; Remove3 &lt;/a&gt;
  &lt;a href="#" id="4" class="delete" onclick="dele()"&gt; Remove4 &lt;/a&gt;
  
  function dele()
      {
          fid= //here i want id of that element which called it
          $.ajax({
              url : 'ajax.php',
              data : {delet:'delet',fid:fid},
              type : 'POST',
              success : function(data)
              {
                  $("#showform").html(data);
                      alert(data);
              }
          });
      }
  </code></pre>
  
  <p>for example </p>
  
  <p>if i click on <strong>Remove1</strong> then i want it's <strong>id</strong> say <strong>1</strong>, </p>
  
  <p>if i click on <strong>Remove2</strong> then i want it's <strong>id</strong> say <strong>2</strong> and so on... </p>
  
  <p>i tried to do this by <strong>$(".delete").click()</strong> but i can't use it because it's causing problem for my project... </p>
  
  <p>here id i am generating through database...</p>
  
  <p>can you suggest how can i get id???</p>
  
  <p>Thanks in advance..</p>