I'm using below JS code to hide "Save and Send Update" button , but it's not working
function hideBtns(){
if(document.getElementsByName("sendEmail")[0]!=null)
document.getElementsByName("sendEmail")[0].style.display = "none";
if(document.getElementsByName("sendEmail")[1]!=null)
document.getElementsByName("sendEmail")[1].style.display = "none";
}
if (window.addEventListener) {
window.addEventListener("load", hideBtns, false);
}
else if (window.attachEvent) {
window.attachEvent("onload", hideBtns);
}
}
Any help will be highly appreciated.