I can\'t understand why I cant get elements from a HtmlCollection. This code example:
var col = (document.getElementsByClassName(\"jcrop-holder\"));
console.lo
look this code, with it you can use a class attribute for a HTMLColletion
var eles = document.getElementsByClassName('className');
for (let i = 0; i < eles.length; i++) {
eles[i].addEventListener('click',function(){
// code ex. eles[i].querySelector(".contenedor").classList.toggle('ocultar');
// code here...
})
}