On page load, I am checking to see if a person is registered. If he is then, I will enable a link otherwise disable the link.
I tried the following , but it doesnt work.
An alternative based on CSS would be
$('#addlink').css('pointer-events', 'none');
CanIUse reports a 94% support of this feature as of early 2017.