JS refresh specific page.php
-
Hi,
In a WP article, there is one bloc which displays a specific php file (called: page1.php)
I would like refresh this bloc (by refreshing page1.php) without refreshing the complete article (full page).
I would like this action to be displayed by pressing a button.
<script> function myFunction() { $('#load_me').load("page1.php"); } </script> <button onclick="myFunction()">Cliquez moi</button>
I’ve tried to build this script but it doesn’t work… could you help me please?
- The topic ‘JS refresh specific page.php’ is closed to new replies.