Window Modal does not work |
-
RRIOS Junior Member
![*](images/star.png) ![*](images/star.png)
-
Posts: 26
Threads: 8
Joined: Jun 2019
Reputation:
0
Hello.
I'm setting up a CRUD. At the end of some routines, INSERT, EDIT etc I want you to either show a success message or not. I thought about using MODAL BOOTSTRAP.
1- I have already inserted all the .js files in the header.htmk file
2- I already put jquery.min.js before bootstrap.min.js
3- I also inserted bootstrap-modal.js
4- I already inserted this code, at the end and at the beginning of the screen that I want to show the MODAL:
<script type = "text / javascript">
$ (window) .load (function () {$ ('# myModal'). modal ('show');
});
</ script>
5- I have already put this code instead of the code above:
$ (document) .ready (function () {
$ ('# myModal'). modal ('show');
});
In the model I do the INSERTS, UPDATES and DELETES, and after that I call a view to give a message. I was using a very beginner model:
<div class = "alert alert-success" role = "alert">
<? php $ msg; ?>
</ div>
And I decided to try the MODAL.
But it does not work.
|
Messages In This Thread |
Window Modal does not work - by RRIOS - 06-08-2019, 10:53 AM
|