title: How to Draw info window on google map (web) using table row onclick
body: <p>I have a google map on my end a plain map of my city something like this</p>
  
  <pre><code>function initialize() {
              var myLatlng = new google.maps.LatLng(1.1, 2.2);
              var mapOptions = {
                  center: myLatlng,
                  zoom: 14,
                  mapTypeId: google.maps.MapTypeId.ROADMAP
              };
  
  }
  
    google.maps.event.addDomListener(window, 'load', initialize);
  </code></pre>
  
  <p>then I have a table that data comes from my database</p>
  
  <pre><code>&lt;table&gt;
    &lt;tr class="row"&gt;
       &lt;td&gt;1.8&lt;/td&gt;
       &lt;td&gt;1.2&lt;/td&gt;
       &lt;td&gt;this is sample description 1&lt;/td&gt;
    &lt;/tr&gt; 
    &lt;tr class="row"&gt;
       &lt;td&gt;2.1&lt;/td&gt;
       &lt;td&gt;1.3&lt;/td&gt;
       &lt;td&gt;this is sample description 2&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr class="row"&gt;
       &lt;td&gt;1.2&lt;/td&gt;
       &lt;td&gt;Longitude&lt;/td&gt;
       &lt;td&gt;this is sample description 3&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>then I have a ready function that will get the data of row</p>
  
  <pre><code>   $(function() {
      $(".row_data").click(function(){  
              var tableData = $(this).children("td").map(function() {
              return $(this).text();
              }).get();
              tableData // this is the row data       
      });
  </code></pre>
  
  <p>what I need to do is open infowindow base on the data I got from clicking one of my rows.</p>
  
  <p>I have search on this but most of the available ways is <br>
  - the infowindow is preloaded </p>
  
  <p>could anyone help me with my approach I try to use on how to add listener like this</p>
  
  <pre><code> infowindow = new google.maps.InfoWindow({
                                  content:  window_detail
                              });
                           infowindow.open(map);
  </code></pre>
  
  <p>but it doesn't seem right and its not working.</p>
  
  <p>Could you help me, and Im new to this so please spare me. Thanks</p>