Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var xmlhttp = new XMLHttpRequest();
- xmlhttp.overrideMimeType("application/json");
- xmlhttp.onreadystatechange = function() {
- if (this.readyState == 4 && this.status == 200) {
- var cost = JSON.parse(this.responseText);
- document.getElementById('cost').innerHTML = cost[x];
- document.getElementById('costwithboard').innerHTML = cost[y];
- console.log("test");
- }
- };
- console.log("test")
- xmlhttp.open("GET", "colleges.json", true);
- xmlhttp.send();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement