<div class="switch-wrapper">
  <input type="checkbox" value="1" checked>
</div>
.switch-wrapper {
  display: inline-block;
  position: relative;
  top: 3px;
}
$("input[type=checkbox]").switchButton({
  on_label: 'yes',
  off_label: 'no'
});

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

  1. https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js