Forum Discussion
SamHill
7 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";