Solved! Go to Solution.
<div><textarea type="text" id="address"/>380 New York St, Redlands</textArea> <br /> <button dojotype="dijit.form.Button" onclick="locate()"> Locate</button></div>
dojo.require("esri.tasks.locator"); dojo.require("dijit.form.Button");
locator = new esri.tasks.Locator("http://tasks.arcgis.com/ArcGIS/rest/services/WorldLocator/GeocodeServer"); dojo.connect(locator, "onAddressToLocationsComplete", showResults);
<div><textarea type="text" id="address"/>380 New York St, Redlands</textArea> <br /> <button dojotype="dijit.form.Button" onclick="locate()"> Locate</button></div>
dojo.require("esri.tasks.locator"); dojo.require("dijit.form.Button");
locator = new esri.tasks.Locator("http://tasks.arcgis.com/ArcGIS/rest/services/WorldLocator/GeocodeServer"); dojo.connect(locator, "onAddressToLocationsComplete", showResults);