Click me
I did
$(\'.my-link\').attr(\'disabled\', true);
$('.my-link').click(function(e) { e.preventDefault(); });
You could use:
$('.my-link').click(function(e) { return false; });
But I don't like to use this myself as it is more cryptic, even though it is used extensively throughout much jQuery code.