title: change google map v3 click event to jquery?
body: <p>I have this working code  : </p>
  
  <pre><code> google.maps.event.addListener(marker, 'click', (function (marker, i)
              {
                  return function ()
                  {
                      infowindow.setContent(locations[i][0]);
                      infowindow.open(map, marker);
                  }
              })(marker, i));
  </code></pre>
  
  <p>howEver , I want to  change it to jQuery.</p>
  
  <p>I tried , but with no success.</p>
  
  <pre><code>  $(google.maps.event).on('click', marker, function ()
    {
      (function (marker, i)
      {
        return function ()
        {
          infowindow.setContent(locations[i][0]);
          infowindow.open(map, marker);
        }
      })(marker, i)
    });
  </code></pre>
  
  <p>any help ?</p>