JSFiddle - React, Tailwind, and code Playground

by Joe

HTML

<!-- checkbox -->
    <label class="led-label"><input type="checkbox" class="led-btn" name="selpoNO" id="selpoNO" style="width: auto !important;"><strong>Checkbox</strong></label>

<!-- text box -->

      <input type="text" class="form-control if_pucEntry" id="" name="" style="display: none;">

JavaScript

$(function() {
  $("#selpoNO").click(function() {
    if ($(this).is(":checked")) {
      $(".if_pucEntry").show();
    } else {
      $(".if_pucEntry").hide();
    }
  });
});