Open ajax call using .click function?

Open ajax call using .click function?

At the moment I have a link in a div that targets an ASP page to remove an item from the database.
 
  1. <a class="small" href="/products.asp?Action=RemoveProduct&ID=<%=(rsCartItems.Fields.Item("ID").Value)%>">remove</a>
 
What I could like to do is use JQuery .click and .ajax methods but the only thing I am unsure of is hot to get the ID of the a href tag containing the unique item ID that relates to the db record. Can I use this.id?
 
  1. <script>
  2. $(document).ready(function(){
  3.     $(".removecartitem").click(function(){
  4.         $.ajax({
  5.         type: "POST",
  6.         url: "/remove.asp?Action=Delete&ID="+this.id,
  7.         success: function(){
  8.             $('#item-list').load('/parts/cartitems.asp');
  9.          }
     
        });

  10. });
  11. });
  12. </script>
  13. <a  class="removecartitem" id="1">remove</a>
  14. <a  class="removecartitem" id="190">remove</a>

Thanks
Simon


$(".btn-slide").click(function(){