Although that link is disabled, it’s still clickable.
<a href="/" disabled="disabled">123n</a>
Can I make it not-clickable if it’s disabled? Should I use JavaScript necessarily?
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.
There is no disabled attribute for hyperlinks. If you don’t want something to be linked then you’ll need to remove the
<a>tag altogether.Alternatively you can remove its
hrefattribute – though this has other UX and Accessibility issues as noted in the comments below so is not recommended.