I have dynamic link and each link is associated with modal pop up.

```
@foreach($image_data as $image)
  <a href="#" data-toggle="modal" data-target="#{{$image->image_id}}">
    <img src="{{asset('public/user_images/')}}/{{$image->image_name}}">
  </a>

  <div class="modal fade" id="{{$image->image_id}}" tabindex="-1" role="dialog">
   <div class="modal-dialog" role="document">
    <div class="modal-content">
      <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">X</span></button>
        <div class="modal-body">
         <img src="{{asset('public/user_images/')}}/{{$image->image_name}}">
        </div>
    </div>
   </div>
  </div>

 @endforeach

```

What javascript or something else should I use to pop up this model ?