I almost never get to play with client-side stuff, and this presumably simple task is kicking my butt :)
I have some links. OnClick I want to prevent the default act
$('a').click(function(event) { event.preventDefault(); $.ajax({ url: $(this).attr('href'), success: function(response) { alert(response); } }); return false; // for good measure });