I want to disable the link during loading, for the code given below
<span id="addlink">"<%= f.add_associated_link('Add Task', @project.tasks.build, :class=>"add") %></span>
I tried it with the codes below but it didn't work
$("#addlink").attr("disabled", "disabled");
and
$("a.add").hide();
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…