I’m trying to make a simple JQuery JSON call with some HTML, JS, and PHP, but it seems like there’s a bug in my createBuilding() function. One of the first thing the function does is create an alert box and not even that shows up. When I check the Javascript console I get Uncaught Reference Error. I made a JS Fiddle to see if anyone can help!
Thank you for all your help!
You seem to confining your function to the scope of DOM Ready event .. So you cannot access outside of .. Also a type in this element
buildingType