title: jQuery - disable and enable an anchor tag based on condition
body: <p>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.</p>
  
  <p>I tried the following , but it doesnt work.</p>
  
  <pre><code>var status = $('#status');
  if (status == 'Registered'){
      $('#addlink').data('disabled');
  } 
  else {
  
  }
  </code></pre>