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.
var status = $('#status');
if (status == 'Registered'){
$('#addlink').data('disabled');
}
else {
}