title: Raty Star rating in Google map infowindow
body: <p>I have added marker on google map with some search results.</p>
  
  <pre><code>var infowindow = new google.maps.InfoWindow();
  var marker, i;
  for (i = 0; i &lt; locations.length; i++) {
      var contentString="";var image_path1="";
      contentString += '&lt;div class="browse-map-venue" style="padding:5px;width: 230px;"&gt;';
          contentString += '&lt;div class="rating" style="float: right; padding-right: 10px;"&gt;';
              contentString += '&lt;script type="text/javascript" src="&lt;?php echo base_url(); ?&gt;media/front/js/jquery.raty.min.js"&gt;&lt;\/script&gt;';
              contentString += '&lt;script&gt;';
              contentString += '$(function() {';
              contentString += '$("#rating_fixed_rate_pop_'+ i +'").raty({';
              contentString += 'readOnly: true,';
              contentString += 'half: true,';
              contentString += 'start: '+ locations[i][6] +',';
              contentString += 'score: '+ locations[i][6] +',';
              contentString += 'path: "&lt;?php echo base_url(); ?&gt;media/front/img"';
              contentString += '});';
              contentString += '});';
              contentString += '&lt;\/script&gt; ';
              contentString += '&lt;div id="rating_fixed_rate_pop_'+ i +'"&gt;&lt;/div&gt;';
              contentString += '&lt;a href="javascript:void(0);"&gt;'+ locations[i][7] +' reviews&lt;/a&gt;';
              contentString += '&lt;/div&gt;';
      contentString += '&lt;/div&gt;';
      marker = new google.maps.Marker({
          position: new google.maps.LatLng(locations[i][1],locations[i][2]),
          title: locations[i][3],
          info: contentString,
          map: map
      });
  
      google.maps.event.addListener(marker, 'click', function() {
          infowindow.setContent(this.info);
          infowindow.open(map, this);
      });
  }
  </code></pre>
  
  <p>But I need to add star rating with raty js which not getting applied to it when I click on marker.</p>
  
  <p>Note: When we edit script written for rating from console and just after pressing enter it shows the stars. But I need those to be displayed when I click on marker in infowindow only.</p>
  
  <p>Thanks in advance!</p>