i have a link_to_remote method :
<%= link_to_remote "Country", :url =>{:controller =>'country',:action=>'get_country_info',:id=>@count_id.to_i},:update=>"Details6",:loading => "Element.show('loader');",:complete => "Element.hide('loader');"%>
i want to disable the link after user made click, I tried with :before=>"this.style.display=none" it removes the link … i want to have disable nature. Can anyone help me out how can i implement this.
Related: Is there a :disable_with equivalent for link_to_remote?