What I want:
I have many buttons and each button is attached to a single bootstrap modal. What I want is to get a value from the bootstrap modal each time the confirm button on the bootstrap modal is pressed and set the value of the button from which that particular modal is triggered or shown.
My Buttons are like this:
<button type="button" class="btn btn-outline-danger" data-toggle="modal" data-target="#deleteModal">Delete Medicine</button>
<button type="button" class="btn btn-outline-danger" data-toggle="modal" data-target="#deleteModal">Delete Medicine</button>
<button type="button" class="btn btn-outline-danger" data-toggle="modal" data-target="#deleteModal">Delete Medicine</button>
<button type="button" class="btn btn-outline-danger" data-toggle="modal" data-target="#deleteModal">Delete Medicine</button>
Any help with code samples would be highly appreciated?