Forum Discussion
PatriciaHaze480
9 months agoCommunity Member
hide the print button in menu and show
If have been trying to hide and show again my Print Page button in the menu.
This is how I made the button to print, and it works, it still shows in my menu.
Modifying the player is often overlo...
SamHill
9 months agoSuper Hero
I think something like this should work. Your original example uses jQuery. This just uses plain JavaScript.
// get a reference to the button
const printButton = document.querySelector('#link-left-2');
// hide button
printButton.style.display = "none";
// show button
printButton.style.display = "inline";