+ 1

How do I remove the button and text?

I’ve been trying for a while and haven’t made any progress. https://code.sololearn.com/W0986fAofqwA/?ref=app

20th Nov 2018, 3:36 AM
FlamingSquid
FlamingSquid - avatar
2 odpowiedzi
+ 2
All the menu is in a div with id "menu", to hide this use: document.getElementById ("menu").style.display = "none"; And to show this replace "none" to "box". https://code.sololearn.com/WS315Q1TDrm0/?ref=app
20th Nov 2018, 5:21 AM
InvBoy [ :: FEDE :: ]
InvBoy [ :: FEDE :: ] - avatar
0
First of all either remove onclick attribute from <button> tag or declare Start() function Now there are two ways to remove button and text: function myFunction() { //To remove permanently document.getElementById("button").remove(); document.getElementById("Title").remove(); } function myFunction() { //to hide document.getElementById("button").style.display="none"; document.getElementById("Title").style.display="none"; }
20th Nov 2018, 7:46 AM
Rishi Anand
Rishi Anand - avatar