How do I pass ID from <button>
into Bootstrap Modal. So I can use ID to get information from ajax to display in the Modal.
For example:
Button:
<button id="123" type="button" class="btn btn-sm" data-toggle="modal" data-target="#Testing">Edit</button>
Should I use shown.bs.modal
do this?
$("#Testing").on('shown.bs.modal', function () {
// How to get ID? id="??"
//Ajax
});