Trigger JS ajax function in just one element with same class name as others?

Trigger JS ajax function in just one element with same class name as others?

Hello people, I've been getting crazier day after day with this, I hope I could get help.

So, I have a php file inside a php while loop that makes that file repeat 6 times (let's call them divs)... And then I have an ajax call (JSON) function that I call every time I click a button of that file, but I get the ajax JSON render in the whole 6 divs, instead of rendering on each div only when I click it's button.

$('.trigger_button_inside_divs').click(RUN_AJAX_FUNCTION);



I manage everything with classes not id's, even the JSON response is rendered inside a class container, not id.


Thanks, I hope I made myself clear!