Trying to append data from this json file to html doc. This is the script:
$(document).ready(function() {
$.ajax({
type: "GET",
url: "Beer.json",
dataType: "json",
success: processBeer,
error: function(){ alert("error"); }
});
function processBeer(data){
$(".box").append("Hello");
}
}
This is the HTML:
<div class="box" id='d'>
</div>