title: jQuery disable link elements with prop or attr
body: <p>I'm using jQuery to disable hyperlinks if the user isn't allowed to click on them.</p>
  
  <p>The documentation(<a href="http://api.jquery.com/attr/" rel="nofollow">http://api.jquery.com/attr/</a>) says:</p>
  
  <blockquote>
    <p>To retrieve and change DOM properties such as the <code>checked</code>, <code>selected</code>, or <code>disabled</code> state of form elements, use the <code>.prop()</code> method.</p>
  </blockquote>
  
  <p>I assume form elements are <code>&lt;input ...&gt;</code> elements so not links (<code>&lt;a&gt;</code>)</p>
  
  <p>And that's why <code>.prop('disabled', true)</code> doesn't work, while <code>.attr('disabled', 'disabled')</code> does. However, is it supposed to work? Is there a specification which say that links can be disabled, in which case clicking on them won't have any action? - or is it just something few browsers implement because they're being nice?</p>
  
  <p>If <code>disabled</code> isn't actually meant to be on links, is there any other easy way to forbid the user clicking on the link, or should I just remove and reattach the <code>href</code> attribute?</p>