Click me
I did
$(\'.my-link\').attr(\'disabled\', true);
This also works well. Is simple, lite, and doesn't require jQuery to be used.
Link