var ViewDelett0element = function(){
for (var p = 0; p <= List.children.length -1; p++) {
List.children[p].addEventListener("click", function(){List.parentNode.setAttribute("class", "ViewDelett0element")});}
};
Please help me: I am currently trying to add the function (ViewDelett0element) to a specific element that clicks, for now the function is traversed to all the child elements with the for adding the function that the class read to the parent element, but I can not find a way to add it only to the child who clicks specifically and to try everything acontinuation the codes try that failed and are not correct or do not work as I thought.
var ViewDelett0element = function(){
for (var p = 0; p <= List.children.length -1; p++) {
List.children[p].addEventListener("click", function(){List.child(Nodes[p]).setAttribute("class", "ViewDelett0element")});}
};