Hacker News new | ask | show | jobs
by Qwertystop 2541 days ago
Hiding things with unchecked checkboxes, at least, can be done entirely in simple CSS.

  .optional {
      display: none;
  }
  input:checked ~ .optional {
      display: inherit;
  }