Here what I exactly need is, if I move over the HTML button, specific div tag should be reloaded without reloading whole page.
How to call PHP function from within JavaScript
12.1k Views Asked by Beena Gates At
2
Here what I exactly need is, if I move over the HTML button, specific div tag should be reloaded without reloading whole page.
PHP works on the server side, and JavaScript on the client side. So to do this, you would have to make a request to the server. If you want to use plain JavaScript, take a look at Ajax:
http://www.w3schools.com/ajax/
Or, if you want to use jQuery, you can use their get method: