Problem: On the html page, it is able to run the JS file once (allow a the modal to pop out and display the contents) however the button "Full Listing" is only able to work on the first option and each page (different search which filters the rows returned). Every other click of full listing button other than the first does not do anything.
Button and JS which is a part of the same php file
<script> var modal = document.getElementById("Modal");
// Get the button that opens the modal
var btn = document.getElementById("Button");
// Get the <span> element that closes the modal
var span = document.getElementsByClassName("close")[0];
Button