I have an undefined number of images on a page and I have 1 modal. I can open with these images this 1 modal, but I want to be able to know which image was clicked so I can use
wes,
You an create a JS function and on click of each image get the src and pass it to the body of the modal.
$('.setImage').click(function(event){
event.preventDefault();
var e = $(this);
var title = 'set modal title here';
var body = 'set modal body here';
var modal = $('#exampleModal');
modal.find('.modal-title').html(title);
modal.find('.modal-body').html(body);
modal.modal("show");
});