Posts

Show modal content from another page within same pages popup

Image
0 Similar questions like this has been posted before but none solved my issue. I'm trying to get enrollments.php page to show as a modal popup within index.php page index.php <button class="sess_btn sess_btn1" id="btn_enrol">Enrollments</button> <div id="enrolModal"></div> <script> $(document).ready(function() { //button modal $('#btn_enrol').click(function(){ //using ajax post $.post('enrollments.php',function() { $('#enrolModal').html(); //Fill DIV enrolModal with enrollments.php content }) //Calling Modal $('#myModal').modal('show'); }) }) //------------- </script> enrollments.php <!-- The Modal --> <div id="...