Good morning everyone,
I have this HTML code:
<div class="container" style="overflow-y:scroll" id="champions_list">
<img id="Aatrox" title="Aatrox" alt="6300" style="cursor:pointer" onclick="AatroxIcon()" src="champions/Aatrox_Square_0.jpg"/>
<img id="Ahri" title="Ahri" alt="4800" style="cursor:pointer" onclick="AhriIcon()" src="champions/Ahri_Square_0.jpg"/>
<img id="Akali" title="Akali" alt="3150" style="cursor:pointer" onclick="AkaliIcon()" src="champions/Akali_Square_0.jpg"/>
</div>
How could I, using javascript, disable and reactivate all the onclick () events assigned to the images within the div at one time? The div actually includes about 140 more images (I have not included them here in the example), and calling them all one by one in code would be tedious.
Thanks in advance!