The w3-disabled class gives an element a disabled appearance.
It does not prevent clicks. Use the disabled attribute to disable a button.
Click a button to see the result.