I have a link that I do not want to be clickable so I created the following code:
<a class="not-allowed" id="new-user" href="users/new">New</a>
<script>
$('.not-allowed').click(false);
</script>
After some user action, I want the link to be clickable, So I use the following code:
$('#new-user').removeClass("not-allowed");
The class "not-allowed" is succesfully removed, but the link is still not clickable. I don't want to make all "not-allowed"s clickable because there are more on the page that still should not be clicked. How can I make the link clickable?