title: How to call ajax for a given list anchor tags with same class id but different url to call
body: <p>I'm new to AJAX, and start to make an ajax able script, in which, I have a number of anchor tags with same class id. But with different url to call for each anchor tag. My function runs but, it call all the anchor tag, even i use to click on one anchor tag. But the task is done for only that clicked anchor tag.</p>
  <p><strong>My 2nd problem is</strong></p>
  <p>when the task completed for one anchor tag and I start to run other ones, it does not complete the task until I refresh the web page again, and click on it. But it shows that success on every anchor tag. Even the work is not done. Hope you understand my problem, Here is my ajax code.</p>
  <pre><code>&lt;script src=&quot;https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js&quot;&gt;&lt;/script&gt;
  &lt;script type=&quot;text/javascript&quot;&gt;
  $('.submitdelete').click(function() {
  $.ajax({
      type:'POST', 
      url: 'http://localhost/w/wp-admin/admin.php?page=rssap-feeds&amp;action=removePosts&amp;post=28', 
      success: function(response) {
       alert(&quot;You have made it!&quot;);
      }
  });
  });
  &lt;/script&gt; 
  &lt;a href=&quot;#&quot; title=&quot;Remove Posts&quot; class=&quot;submitdelete&quot;&gt;Remove Posts&lt;/a&gt;
  //this is for below one
  &lt;script type=&quot;text/javascript&quot;&gt;
   $('.submitdelete').click(function() {
  $.ajax({
      type:'POST', 
      url: 'http://localhost/w/wp-admin/admin.php?page=rssap-feeds&amp;action=removePosts&amp;post=29', 
      success: function(response) {
       alert(&quot;You have made it!&quot;);
      }
  });
  });
  &lt;/script&gt;
  &lt;a href=&quot;#&quot; title=&quot;Remove Posts&quot; class=&quot;submitdelete&quot;&gt;Remove Posts&lt;/a&gt;
  </code></pre>
  <p>And if some one does not understand this problem, please comment below for more information.</p>
  <p><strong>Question is</strong> How do I do that correctly?</p>