The forums ran from 2008-2020 and are now closed and viewable here as an archive.
I am trying to recreate game spell UI using jQuery, kinda stuck here.
I know how to change src of image on click if it is in HTML code written the normal way (img src1, change to img src 2).
I do not know how to do this with sprite where is always only transparent.gif.
There is this toggle class jQuery but I am not sure it is the right one.
I need to get rid of class .example1 and replace it with .example2
Code Pen (info in .JS part)