I want to hide few buttons to print so I am using this CSS code but it is not working still button are showing in print HTML code is
.btn btn-primary * {
visibility: hidden;
}
<div id="control" style="display: none">
<button class="btn btn-primary" onclick="toEmail()">Send to Mail</button> <button onclick="window.print();" class="btn btn-warning">Send to PDF</button>
</div>