This my be a stupid question by why would you bother to provide a link
in the first place if you intend for it to be disabled?
Even a JavaScript virgin like me can answer that. Just look on the menu
items of your browser; you are almost guaranteed to find clickable items
that are greyed out.
I've long campaigned that such disabled items should not actually be
rendered completely inoperative; rather they should generate some sort
of information panel (a tooltip would usually be sufficient) describing
exactly why they are greyed out, and the first step that you have to
take in getting them enabled (you only have to document the first step,
as the user can do this, then go back to discover what to do next).
I realise that many of these tooltips would contain little more than
"This control makes no sense in this context", but at least my
suggestion would save a few of us from having an apoplexy whilst
grappling with an unco-operative PC!
As you can see, not one single developer has risen to my challenge...
Not even the ones whose sales would benefit from tooltips that said "In
order to activate this control you have to buy Product X"