Page with AJAX request
- jQuery.get
<div id="msg"></div>
<script>
$(document).ready(function() {
jQuery.get('/api/v1/greeting', function(data) {
console.log(data);
$("#msg").html(data["text"]);
});
});
</script>
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
<div id="msg"></div>
<script>
$(document).ready(function() {
jQuery.get('/api/v1/greeting', function(data) {
console.log(data);
$("#msg").html(data["text"]);
});
});
</script>