I have multiple buttons in a for loop. I want to show only one modal when I click a button, but now it shows all modals for every button when I click the button. I want to show one modal for each button. How do i fix the problem?
each user in users
tr
td= user.email
td
.ui.basic.blue.button#more More
.ui.mini.modal.myModal
i.close.icon
.header
| #{user.email}
.content
|#{user.email}
.actions
.ui.positive.right.labeled.icon.button
| Yep!
i.checkmark.icon
JQuery
$('#more').click(function(){
$('.ui.modal.myModal').modal({
}).modal('show');
});