I am working on page that open a modal popup to retrieve data from the database. But when i click on submit button, the modal popup come up perfectly but it does one retrieve the info from database. Please can someone help me modify the form so that it would retrieve a url parameter when the modal popup is clicked.
Here is the form: I got it from here
$('#myForm').on('submit', function(e) {
$('#myModal').modal('show');
e.preventDefault();
});
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<form class="form-inline" onsubmit="openModal()" id="myForm">
<input type="submit" name="button" id="button" value="submit">
<button type="submit" class="btn btn-primary">Submit</button>
</form>