When I run this code I get the following error
error:
invalid label
"html_attributions" : [ --------json?l...4845749 (line 2)
and nothing gets displayed.What changes I have to make in order to get this right and where am I going wrong?
<script src="
http://www.mattcashatt.com/Scripts/jquery-1.4.4.min.js" type="text/javascript"></script>
<input id="Company" type="text" /><input id="goButton" type="button" value="Go" /><div id="Placeholder"></div>
this is my java script:
<script type="text/javascript">$('#goButton').click(function(){$.getJSON("
https://maps.googleapis.com/maps/api/place/search/json?location=-33.8670522,151.1957362&radius=500&types="+$('#Company').val()+"&name=harbour&sensor=false&key=AIzaSyC1BIAzM34uk6SLY40s-nmXMivPJDfWgTc&callback=?",function (data){$('#Placeholder').html("");$('#Placeholder').append(<h1>Company name:</h1>" + data.name + "<br/><br/>");$('#Placeholder').append("<h1> page:</h1>" + data.types + "<br/><br/>");$('#Placeholder').append("<h1>Likes:</h1>" + data.vicinity + "<br/><br/>"); });});
JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)