Really just seems simple enough: been following the jquery docs; can't reason why this won't print a list to the specified div element.
$(document).ready( function() {
$.getJSON("dino.json", function(data) {
$.each(data, function(key, val) {
$("#triassic").html("<li class = " + key.name + ">" + key.name + "</li><br>")
});
});
});
<!DOCTYPE html>
<html lang = "en">
<head>
<title>TEST</title>
<!-- my Script -->
<script src="dinoscriptTest.js"></script>
<!-- JQuery -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
</head>
<body>
<div id = "triassic"></div>
</body>
</html>
JSON:
[
{
"name":"T REX"
},
{
"name": "Triceratops"
},
{
"name": "Diplodocus"
}
]