Print page CSS

PHOTO EMBED

Tue Dec 15 2020 01:19:49 GMT+0000 (UTC)

Saved by @eneki

// On CSS file, list all that you don't want to print

@media print {
    #print-navbar {
        display: none;
    }
    #print-sidenav {
        display: none;
    }
    #print-invoice-heading {
        display: none;
    }
    #print-invoice-print-button {
        display: none;
    }
    #print-invoice-submit-button {
        display: none;
    }
}

// This should be called on the print button

<script>
        $(document).ready(function() {
            $('.print-window').click(function() {
                window.print();
            });
        });

</script>
content_copyCOPY