SyntaxFix
Write A Post
Hire A Developer
Questions
The disabled attribute is not global and is only allowed on form controls. What you could do is set a custom data attribute (perhaps data-disabled) and check for that attribute when you handle the click event.
disabled
data-disabled