CSC 230: The Week beginning Nov. 14 |
<script> $(document).ready(function () { // much of the jQuery code is contained within // this method which is like a function handling the onload event });//end document ready </script>
$.getJSON('CarFacts.json', function (data) { JSON_Response = data; //JSON_Response declared globally //alert(JSON_Response.cars[0].carManufacturer); }); //end getJSON