I want to disable a tag if it’s already set — e.g., disable a menu using disabled = "true" or something.
I can remove a tag completely using PHP; but I have already styled it and only want to disable it. Is it possible?
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.
Nope, there is no CSS-only way known to me to disable a link the way you describe.
The only thing that comes to mind is putting an additional, transparent element in front of the link, but that can’t be achieved in pure CSS, either.
How about giving it a
href='#' onclick='return false'when generating them in PHP?