<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("#example-jquery-ajax-get-button").click(function(){
$.get("/assets/tutorial_demo_test/date.php", function(data){
$("#example-jquery-ajax-get-div").html(data);
});
});
});
</script>
<div id="example-jquery-ajax-get-div">
<p>Which day is today?</p>
</div>
<button type="button" id="example-jquery-ajax-get-button">click here to check day</button>
Output
Which day is today?
