How to activate and Deactivate the Rails code hyperlink using JQuery for the following code
<%= f.add_associated_link "Add another email address",:class => 'add' %>
please suggest me to solve this major problem
How to activate and Deactivate the Rails code hyperlink using JQuery for the following code
<%= f.add_associated_link "Add another email address",:class => 'add' %>
please suggest me to solve this major problem
Well, I you want to deactivate you could do something like
var activated = false;
$(".className").click(function(e){
if(!activated){
e.preventDefault();
}
}
But you might wanna be a bit more specific about what you want to do.