Bootstrap 4 - how to add a toggle inline to a form input label

Viewed 53

I have the following Bootstrap 4 form

<div class="form-layout">
            <div class="row mg-b-25">
                <div class="col-lg-4">
                    <div class="form-group">
                        <label class="form-control-label">Status: <span class="tx-danger">*</span></label>
                        <input class="form-control" type="text" name="status" value="" placeholder="Enter status">
                    </div>
                </div><!-- col-4 -->
      </div>
</div>

enter image description here

What I want to achieve is the following.

enter image description here

I'm using this for toggles: https://simontabor.com/labs/toggles/

1 Answers
Related