D
D
David2016-04-22 14:07:45
JavaScript
David, 2016-04-22 14:07:45

Is it possible in Google Maps API 3 to access elements inside an infowindow?

On event, I need to add text to input inside infowindow. I didn't find anything like that in the documentation. It is possible to overwrite the entire contents of the infowindow, but I think there must be some simpler solution
. A short example:

google.maps.event.addListener(infowindow,'domready',function(){
      $('.smiles span').click(function() {
             $('.text').val($('.text').val() + $(this).data('code'));
      });
});

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question