Skip to content
Advertisement

Display search results from php function in a popup/modal

I have a search where the results are displayed in a table generated by php on my main page. I want to display the results table in a popup/modal instead of on the page. Search works fine until I put it in the modal and then nothing pops up. I took the modal code from W3 schools. Any assistance or a better way to achieve this is much appreciated.

JavaScript

JS

JavaScript

CSS:

JavaScript

Advertisement

Answer

i used a plugin from this website and tailored it to my needs and it is working perfectly.

https://www.jqueryscript.net/lightbox/jQuery-Multi-Purpose-Popup-Modal-Plugin-popModal.html

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement