title: jQuery If this image is found on page add this meta tag?
body: <p>I am trying to add rich snippets to a dynamic image that displays stars. The only thing my shopping cart writes is this image so I have to find what image is being displayed then add the proper meta tag.</p>
  
  <p>So if the image being displayed is 1stars.gif I have to write:</p>
  
  <pre><code>&lt;meta itemprop="ratingValue" content="1" /&gt; 
  </code></pre>
  
  <p>and if the image being displayed is 5stars.gif I have to write:</p>
  
  <pre><code>&lt;meta itemprop="ratingValue" content="5" /&gt; 
  </code></pre>
  
  <p>Here is the UPDATED full example:</p>
  
  <pre><code>&lt;span id="rateitnow"&gt;
  {module_ratingrank,images/icons/stars}
  &lt;meta itemprop="ratingValue" content="" /&gt;
  &lt;/span&gt;
  
  &lt;script type="text/javascript"&gt;
  jQuery(document).ready(function($) { 
  $('#rateitnow meta').attr('content', $('#rateitnow').find('img:first').attr('src').substr(0,1));
  });
  &lt;/script&gt;
  </code></pre>