title: jquery link tag enable disable
body: <p>I want to disable the link during loading, for the code given below</p>
  
  <pre><code>&lt;span id="addlink"&gt;"&lt;%= f.add_associated_link('Add Task', @project.tasks.build, :class=&gt;"add") %&gt;&lt;/span&gt;
  </code></pre>
  
  <p>I tried it with the codes below but it didn't work</p>
  
  <pre><code>$("#addlink").attr("disabled", "disabled"); 
  </code></pre>
  
  <p>and</p>
  
  <pre><code>$("a.add").hide();
  </code></pre>