I have some dynamic links that are generated via an e-commerce plugin. They have a unique id. I was wondering if it is possible to disable a link via jQuery or Javascript?
Share
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.
this script sets the attribute of all anchor items to ‘#’ (you will need to provide logic to determine if it’s a link you want to modify):
if the anchor tags in your document have a common class, you could select them all by class name instead:
another option is to remove the
hrefattribute altogether