$(document).ready(function() { $('a.AdLink').bind('click',function() { $.ajax({ type: 'POST', url: 'https://www.businessnhmagazine.com/Components/Ad/Assets/AJAX/AdClicked.php', data: 'adid='+$(this).attr('rel'), success: function(msg){ //console.log(msg); } }); }); });