What is wrong with my jquery code?
<p>I have this div:</p>

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

<p>An this is the jquery code which extracts the data-title value and replaces the &amp;nbsp with it.</p>

<pre><code>function performerNames(){

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

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

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

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

    }

}
</code></pre>

<p>Ty very much!</p>
