<div class="parent blue">
  <div class="box" inert>
    <code>inert = true</code>
    <button>You can't click me!</button>
  </div>
  <div class="box">
    <code>inert = false</code>
    <button>Click me!</button>
  </div>
</div>
[inert], [inert] * {
  opacity: 0.5;
  pointer-events: none;
  cursor: default;
  user-select: none;
}

button {
  cursor: pointer;
  padding: 0.5rem;
  font-size: 1rem;
  background: var(--yellow);
  border: 2px solid;
  border-radius: 0.5rem;
}

* {
	margin: 0;
	padding: 0;
}

.parent {
  height: 100vh;
}

.box {
  margin: 2rem 20%;
  display: flex;
  justify-content: space-evenly;
}

External CSS

  1. https://codepen.io/web-dot-dev/pen/54c079f4ba2f7cf20163b8bd89280de2.css
  2. https://fonts.googleapis.com/icon?family=Material+Icons

External JavaScript

  1. https://code.jquery.com/jquery-1.10.2.js
  2. https://code.jquery.com/ui/1.10.4/jquery-ui.js