Jquery ajax – Refresh php data in html page dynamically through ajax request
I have 2 divs: one is a data from php variable: <div id="data"><?php echo "$strstr"?></div> Second is the div for ajax request: <div id="divButton">[CLICK ME]</div> Here is js code: $("#divButton").on("click", function() { $.ajax({ type: "POST", url: "test.php", dataType: "json", data:…