I want to disable the link during onloading, for the code given below
<span id="addlink">"<%= f.add_associated_link('Add Task', @project.tasks.build, :class=>"add") %></span>
please,suggest some answers if you have
i tried with the below samples but not working
$("#addlink").attr("disabled", "disabled");
and
$("a.add").hide();