how to use modal to edit data code example
Example 1: call function on modal open
$('#myModal').on('shown.bs.modal', function (e) {
// do something...
})
Example 2: html data-target modal
$('#myModal').modal('show')
$('#myModal').on('shown.bs.modal', function (e) {
// do something...
})
$('#myModal').modal('show')