You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have made a to do list and a close button but I do not use the fade out I used js code
`
var myNodelist = document.getElementsByClassName("item");
var i;
for (i = 0; i < myNodelist.length; i++) {
var span = document.createElement("SPAN");
var txt = document.createTextNode("");
span.className = "close";
span.appendChild(txt);
myNodelist[i].appendChild(span);
}
the issues is when I close one and make a new new they all come back
this.parentElement.style.display = 'none';
var close = document.getElementsByClassName("close");
var i;
for (i = 0; i < close.length; i++) {
close[i].onclick = function() {
var div = this.parentElement;
div.style.display = "none";
}
}
now I close it
and when I make another one this is what happens
they all come back
Hi abdur, @Abdurahmanm2020
It takes time to check this. Can you share the complete source code? Also HTML.
What exactly is the problem? And what did you expect?
Best,
HI I am abdur rahman i need help to please
I have made a to do list and a close button but I do not use the fade out I used js code
now I close it
and when I make another one this is what happens
they all come back
@oluwaseunasuni
@AnneLivia
@juliatotta
@Anteste
@Abbas
@Abbazz2020
@iam-abbas
@neodigm
@MatheusWilliam31
@BaseMax
@Obizim
@iamfortune
@Timo-cmd
@JoneBulande
@payperlez
@izabellaribeiro
The text was updated successfully, but these errors were encountered: