Jquery inside foreach loop
<p>I have this jquery code in a foreach loop. Basicaly the variable $perf gets a new value with every loop. How can I use jquery to display the different $perf value with each loop? Is it possible?</p>

<pre><code>    foreach ($perfs as $perf):

    &lt;script type="text/javascript"&gt;

    $(document).ready(function(){

    var performerName = $(".transparency").data('title'); 

    var divcontent = $(".transparency").html();

    if ( divcontent == '&amp;nbsp;' ){

    $(".transparency").html(''+performerName+''); 

    }

    });

    &lt;/script&gt;

   &lt;div class="transparency" data-title="&lt;? echo $perf; ?&gt;"&gt;&amp;nbsp;&lt;/div&gt;

   endforeach;
</code></pre>
