As mentioned in this link Disable link with the prototype observe method
If the link is disabled using the observe method how is it possible to enable it.
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Your best bet is probably to use a flag; alternately you can add and remove a handler. Or probably about 15 other ways. 🙂
Using a Flag
That uses an attribute called
data-disabled(using thedata-prefix to be HTML5-compatible) which if present and truthy disables the link.If you don’t mind sticking properties on element instances, you can do it without using an attribute:
Putting properties on element instances works in all popular browsers, but some people frown on it, hence using an attribute above.
Adding/Removing a Handler