title: Interactive Infowindow Google Map V3
body: <p>This probably has a very simple answer, but I just couldn't get it to work.</p>
  
  <p>First Part (not working). Inside infowindow:</p>
  
  <pre><code>    dataTitle = place.name;
      content += "&lt;input type='button' value='Add this Spot' onclick='addToList("+place.geometry.location.lat()+","+place.geometry.location.lng()+",dataTitle);' &gt;";
  </code></pre>
  
  <p>Alert dataTitle on the spot works fine, however dataTitle is empty in the addToList function for some reason.</p>
  
  <p>Second Part (Working). Now I use the exact same thing OUTSIDE of customed infowindow and it works just fine...</p>
  
  <pre><code>    dataTitle = $(this.content).find("div.gm-title").text();
      var link = $("&lt;input type='button' value='Add this Spot' onclick='latLngSet(dataTitle)' &gt;");
  
  function latLngSet(title) {
      addToList(userLatitude,userLongitude,title);
  }
  </code></pre>
  
  <p>Latitude and Longitude both display correctly, just the title is showing blank inside custom infowindow...</p>