Dynamic Jquery selectors
<p>This works (in firefox but not ie):</p>

<pre><code>document.getElementById(filename+'Likes').innerHTML=result;
document.getElementById(filename+'Like').setAttribute('class','hideGalleryLike');
document.getElementById(filename+'Dislike').setAttribute('class','hideGalleryLike');
</code></pre>

<p>I thought the jquery code should be:</p>

<pre><code>$('#'+filename+'Likes').html(result);
$('#'+filename+'Like').attr('class','hideGalleryLike');
$('#'+filename+'Dislike').attr('class','hideGalleryLike');
</code></pre>

<p>But it doesn't work. 'filename' always starts with the username of the person who uploaded the file, which in turn always starts with a letter. I am aware of other ways of changing the class, but it seems that it is the dynamic selector that is the issue.</p>
