Jquery events foroogle maps infowindow elements are not work inside $(document).ready(function(){}) or script> tag because the elements not added to the dom when browser execute the jQuery. Solution for this problem is need to add one click listener for google maps infowindow. google.maps.event.addListener(infowindow, ‘domready’, function(e){ //Put your jQuery code here }); //example of infowindow jquery…