-
-
Notifications
You must be signed in to change notification settings - Fork 44.1k
Make Get JSON with the jQuery getJSON Method challenge quote agnostic #3962
Copy link
Copy link
Closed
Description
Challenge Waypoint: Get JSON with the jQuery getJSON Method has an issue.
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.80 Safari/537.36.
Please describe how to reproduce this issue, and include links to screenshots if possible.
My code:
<script>
$(document).ready(function() {
$("#getMessage").on("click", function(){
// Only change code below this line.
$.getJSON("/json/cats.json?callback=", function(json) {
$('.message').html(JSON.stringify(json));
});
// Only change code above this line.
});
});
</script>
<div class="container-fluid">
<div class = "row text-center">
<h2>Cat Photo Finder</h2>
</div>
<div class = "row text-center">
<div class = "col-xs-12 well message">
The message will go here
</div>
</div>
<div class = "row text-center">
<div class = "col-xs-12">
<button id = "getMessage" class = "btn btn-primary">
Get Message
</button>
</div>
</div>
</div>Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels