I'm trying to remove the [0]
from the below and instead replace with iteration as appears to be the solution on another post here
However my knowledge is very limited so it may be that this is not the solution or a variation is needed. The function is being called on on-click and I'm only looking for the element that is clicked to be activated. For example if there are two occurrences of "thishere", only the occurrence which is clicked will be called.
Any help would be much appreciated.
function zxcv(el) {
el.style.display = "none";
el.parentNode.parentNode.getElementsByClassName("thishere")[0].style.display = 'block';
return false;
}