[CSS] Disabled Element
*:disabled, *[disabled] {
opacity: 0.5;
color: #666666;
cursor: not-allowed;
pointer-events: none;
}
Example:
<button disabled>Disabled Button</button>
All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.