i have this function in javascript :
document.addEventListener("click", function() {
accSelect =document.getElementsByClassName("customSelectorListBox")[0].style.display;
if(accSelect=="block" ) {
document.getElementsByClassName("customSelectorListBox")[0].style.display="none";
}
}, true);
How can i get the id of a div I click on, inside this function ?