0

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.

AtulRajguru9
  • 9,110
  • 3
  • 28
  • 66
ds9972
  • 189
  • 2
  • 9
  • 18

1 Answers1

0

what about giving an Id to those buttons and hide it in style.

#your_id{
    display: none;
}

Akhil
  • 178
  • 1
  • 9