How to know if button isn't clickable

Hey guys is there a way to know if a button isn’t clickable using javascrpt or jquery?

image

Check it’s disabled property?

What I mean is using JS in the plug-in editor. So for example an attribute on the HTML that says disabled = true

Yep i meant checking the disabled property of a button in javascript/jquery.
Here is a documentation on the disabled property of a DOM button
https://www.w3schools.com/jsref/prop_pushbutton_disabled.asp

See an example here.
https://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_pushbutton_disabled