When the user clicks on an image, I want the onClicks on all other images to be disabled until my function has finished.
I currently have this code that disables the
by setting eles[i].onclick = false; you are reassigning the onclick event to false. setting back to true does not assign it back to the original function. It is probably better to handle the un-assigning in the event function instead.
eles[i].onclick = false;
onclick
false