Currently, I am dealing with jVectorMap and facing a challenge where I need to implement a modal that retrieves data from the database and displays the output within the modal.
The aim is to trigger the modal using the following JavaScript function:
onMarkerSelected: function (event, index, isSelected, selectedMarkers) {
$('#myModal').modal('show');
}
The structure of my Modal is as follows:
<div class="modal fade" id="largeModal" tabindex="-1" role="dialog" aria-labelledby="myModal" aria-hidden="true">
// fetch data from db by id
</div>
Despite my efforts, this method doesn't seem to be effective for achieving the desired outcome.