jeudi 25 novembre 2021

How to print only the checked checkboxes? [duplicate]

How can I do possible using the standard browser print menu, print only selected checkboxes? Using javascript, of course. I am using Bootstrap default checkboxes. I mention that i am new to web development.

Checkbox list example:

<div class="form-check">
  <input class="form-check-input" type="checkbox" value="" id="flexCheckDefault">
  <label class="form-check-label" for="flexCheckDefault">Option 1</label>
</div>
<div class="form-check">
  <input class="form-check-input" type="checkbox" value="" id="flexCheckDefault">
  <label class="form-check-label" for="flexCheckDefault">Option 2</label>
</div>
<div class="form-check">
  <input class="form-check-input" type="checkbox" value="" id="flexCheckDefault">
  <label class="form-check-label" for="flexCheckDefault">Option 3</label>
</div>



Aucun commentaire:

Enregistrer un commentaire