title: add event handler an element inside a info window google maps v3
body: <p>hi I'm trying to add to button inside an info window an event i tried like this</p>
  
  <pre><code>var infoWindow = new google.maps.InfoWindow({
      content: '&lt;div&gt;&lt;/br&gt;&lt;span class="formatText"&gt;Ubicacion del Marcador: &lt;/span&gt;' + event.latLng.toString() 
              + '&lt;/br&gt; &lt;input type="button" id="btnPrueba" value="prueba"/&gt;&lt;/div&gt;'
  });
  
  google.maps.event.addListener(marker, 'click', function () {
      infoWindow.open(map, this);
      google.maps.event.addDomListener(document.getElementById('btnPrueba'), 'click', removeMarker);
  });
  
  function removeMarker(){
  
      alert('it works');
  }
  </code></pre>
  
  <p>What am i doing wrong? or it's another way to do this?. Thanks</p>
  
  <p><strong>Edit</strong></p>
  
  <p>I'm also tried with jquery like this but although the event it's get by the function the alert doesn't show.  When i do the debug with chrome it's works :(</p>
  
  <pre><code>google.maps.event.addListener(marker, 'click', function () {
      infoWindow.open(map, this);
      $("#btnPrueba").click(function () {
  
          alert('funciona');
      });
  });
  </code></pre>