skip to Main Content

Can Javascript alone be used to add a new Bootstrap switch?

how to use only Javascript to add new Bootstrap switch dynamically like this: <div class="toggle btn btn-primary" data-toggle="toggle" role="button" style="width: 61.0781px; height: 38px;"> <input type="checkbox" checked="" data-toggle="toggle" data-onstyle="primary"> <div class="toggle-group"> <label class="btn btn-primary toggle-on"> On </label> <label class="btn btn-light toggle-off">…

VIEW QUESTION
Back To Top
Search