<img src="http://www.fillmurray.com/80/80">
<img src="http://www.fillmurray.com/80/80">
<img src="http://www.fillmurray.com/80/80">
<img src="http://www.fillmurray.com/80/80">
img.active {
border: 5px solid black;
}
$(function() {
$('img').click(function() {
$(this).toggleClass('active');
});
});
https://jsfiddle.net/ChilledMonkeyBrain/sLv8gvy9/
Easy points to anyone who has basic knowledge of JQ. I've done this before, but I can't remember how. Been at it for ages, so need to ask for help.
Very simply, clicking on an image gives it a border. When you click on the next image it should remove the border from the previous image as well as adding it to the current image. What is this called again?!