Bootstrap input group

Bootstrap input group

Loren MaxwellLoren Maxwell Posts: 406Questions: 99Answers: 10

I'm interested in implementing a checkbox next to a text input.

The Bootstrap 5 example is here: https://getbootstrap.com/docs/5.1/forms/input-group/#checkboxes-and-radios

<div class="input-group mb-3">
  <div class="input-group-text">
    <input class="form-check-input mt-0" type="checkbox" value="" aria-label="Checkbox for following text input">
  </div>
  <input type="text" class="form-control" aria-label="Text input with checkbox">
</div>

Is this possible aside from a field type plug-in?

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Answer ✓

    As you say, this would be a case where a field plug-in would come into play. You could inject the checkbox into a regular text input - but the get / set for the value wouldn't take it into account at all.

    Allan

Sign In or Register to comment.