Change class on click in repeat region

Hi.
I’ve a repeat region displaying images thumbs. Clicking on each thumb it pass the ‘src’ value to a form, and it works. I’m trying to change the class ONLY on the thumbs on which the user had clicked on.
I’ve tryed something like this:

$(document).ready(function () {
  var selectedImgsArrASCOD = new Array();
  $("#ASCOD").click(function () {
    $("#ASCOD").not(this).removeClass("selected-image-base");
    $(this).toggleClass("selected-image-base");
  });
});

but it doesn’t work. Anyone can help me?

Community Page
Last updated: