Skip to content

Make Get JSON with the jQuery getJSON Method challenge quote agnostic #3962

@BerkeleyTrue

Description

@BerkeleyTrue

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>

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions