I have an app in Bootstrap which has to show different manners in different pages. For this I have thought to remove these manners and have each in an HTML file so that after each page you can call it to be displayed. I want to do it this way so I do not have to declare in the different HTML the same Divs with the manners so that if I have to create a new HTML, I do not have to make a copy paste with all the manners.
Summary: I can not have a modal in a different HTML and from a JS function call it. Has anyone done this? Can you give me a cable?
Thank you very much!
In the example below, I reply page1.html, what I mean is, if for example on page2.html I need only 2 of the 3 manners, I would touch replicate the code of
<!DOCTYPE html>
<html>
<head>
...
</head>
<body>
<button onclick='openModalOne()'>Open One</button>
<button onclick='openModalTwo()'>Open Two</button>
<button onclick='openModalThree()'>Open Three</button>
<div class="modal fade" id="dialogError" tabindex="-1" role="dialog" aria-hidden="true">
....
</div>
<div class="modal fade" id="dialogInfo" tabindex="-1" role="dialog" aria-hidden="true">
....
</div>
<div class="modal fade" id="dialogConfirm" tabindex="-1" role="dialog" aria-hidden="true">
....
</div>
</body>
</html>