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
Try this
$('a').click(function (event) { event.preventDefault(); var url = $(this).attr('href'); $.get(url, function(data) { alert(data); }); });