JSFiddle - React, Tailwind, and code Playground

by Gonzalo

HTML

<strong>Search:</strong>
<input type='text' id='txtSearch'/>
<button id='btnOk'>Ok</button>

JavaScript

$.getJSON("http://maps.google.com/maps/api/geocode/json?address="+ $('#txtSearch').val()+",MX&sensor=false", function(response) {
    console.log('Success!');
	console.log(response);
}).error(function() { alert("error"); });