| Viewed 25 times

How to hide a div when print page using bootstrap


I need to print the all page except some components using JS print() function, how to do that?

1 Answer
Mohammad Qandeel
Answered
0

you can add class .d-print-none to hide an element when printing 

example 

    <button onclick="print()" class="btn btn-info d-print-none" >Print all page withot print button</button>