Using Datatables.net with modal-boostrap library
Using Datatables.net with modal-boostrap library
When I add these lines to the top of my <head> from this example: https://www.w3schools.com/Bootstrap/bootstrap_modal.asp
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
My website does not fully work (neither does the modal-boostrap):
https://databasetable-net.000webhostapp.com/
This is what it should look like before adding the modal-boostrap code:
https://databasetable-net.000webhostapp.com/test.php
I have tried many different lines of code from different articles and figured I would post since there seems to be no clear answer (online anyways).
Thanks.
Answers
The code below worked in a test trial run so the issue is most likely within the header JS.
<button name="add" id="signup" type="submit" class="addform_btn" data-toggle="modal" data-target="#myModal"><span class="glyphicon glyphicon-plus-sign"></span> Add Employee</button>
This header https://github.com/sokchab/phpserverside/blob/master/index.html does not seem to work either.
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
Figured out solution: