How to hide a button in javascript?

Style display property is used to hide and show the content of HTML DOM by accessing the DOM element using JavaScript/jQuery. To hide an element, set the style display property to “none”.

How do I hide a button?

How do you hide a button when clicked?

  1. Text