return PartialView("_Customer", collection);
<pre> <script> $(function () { var placeholderElement = $('#modal-placeholder'); $(document).on('click', 'button[data-bs-toggle="ajax-modal"]', function (event) { var url = $(this).data('url'); $.get(url).done(function (data) { placeholderElement.html(data); placeholderElement.find('.modal').modal('show'); }); }); }) </script>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)