<img data-src="stol1_hover.png" class="img_table" src="stol1.png"> <img data-src="stol1_hover.png" class="img_table" src="stol1.png"> $('img.img_table').click(function(){ var $this = $(this); var newSource = $this.data('src'); $this.data('src', $this.attr('src')); $this.attr('src', newSource); }); Suppose you clicked on the first picture, it stood out, how to make a click on the second, the first one lost activity, and the second was active.
In the example there are two pictures, but maybe more
