Hi

Im making a price calculating tool where i need to
have a php script run in the "background" no refresh.

I have a dynamic page with Add links that call up the list.php and pass two variables

Code:
<a href="list.php?action=add&id=23">Add</a>
<a href="list.php?action=add&id=13">Add</a>
<a href="list.php?action=add&id=3">Add</a>
<a href="list.php?action=add&id=65">Add</a>
etc...
Been googling and this is the closest I've gotten, it works, but
only with a form button, and i can't get it to get the id from the button

Code:
<script type="text/javascript">
$(document).ready(function() {
$('#AddMe').on('click', function () {
$.ajax({ url: 'cart.php?id=6',
         data: {action: 'add'},
         type: 'get',
         success: function(output) {
                      //alert(output);
                  }
});
    });
});</script>
does anyone have an idea how to solve this, and preferably using "a href" style button/link?

thx

br

Silverviper