I am creating a website using bootstrap. But I have come to a standstill. I created a modal from this example (see below). As you can see, this is modally taken directly from their site.
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title" id="myModalLabel">Nieuwe Taak toevoegen</h4>
</div>
<div class="modal-body">
...
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary">Save changes</button>
</div>
</div>
</div>
</div>
I open this dialog with a button.
<button type="button" class="btn btn-default btn-sm" data-toggle="modal" data-target="#myModal" >
But I want to keep my modals separate aspx/html-files. How can I open these modals when they are stored inside different ones html/aspx - files?
Example:
if the button is inside index.Htmlbut modal inside newTaskModal.html, how would I open a modal? (If both are inside index.html, then no problem)
Note. I can not / can not use HTML5 (company standards)