Hi i need help with refreshing div, but not auto refresh!
I have my div like this.
<div id="osvezi">
<?php include('moduli/skupina_artiklov/osvezi.php'); ?>
</div>
I want that i clicked some button they refreshed me only div osvezi.
Thanks for help.
You can use
.load()with a selector like this:This responds to an element with
id="mybutton"being clicked and refetches the page but only that portion. Alternatively, ifmoduli/skupina_artiklov/osvezi.phpis accessible directly, you can just load that directly (more efficient!) this: