+ 1

Could you help me on JavaScript please

my cod-> <div id="d"> <ol id="myOl"> </ol> <div id="team"></div> </div> -> I want to cut div which id is team but when I am using innerHTML="";but it cuts ol too Can I make it without using removeChild ?

6th Jun 2017, 8:41 AM
Serhat Merak
Serhat Merak - avatar
5 odpowiedzi
+ 3
can you post the code here
6th Jun 2017, 8:45 AM
Nomeh Uchenna Gabriel
Nomeh Uchenna Gabriel - avatar
+ 3
Then try setting the onclick action of the remove button to ( document.getElementById("team").style.visibility = 'hidden'; )
6th Jun 2017, 8:54 AM
Nomeh Uchenna Gabriel
Nomeh Uchenna Gabriel - avatar
+ 1
it is too long about 500 lines 😊 I have two button one of them will create div other one will remove that div but <ol> won't change
6th Jun 2017, 8:48 AM
Serhat Merak
Serhat Merak - avatar
+ 1
thank you
6th Jun 2017, 8:56 AM
Serhat Merak
Serhat Merak - avatar
0
That is different from my other problem 😊
6th Jun 2017, 3:19 PM
Serhat Merak
Serhat Merak - avatar