Trying to hide specific buttons for print using CSS, but it doesn't seem to be working. Here is the code snippet:
.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>