Jquery html() not not working
<p>I have a simple js function: </p>

<pre><code> function changeContent(id, content) {
         $(id).html(content);
     }
</code></pre>

<p>which gets called on ajax callback. id is an id of a div, and $(id) does indeed find it.</p>

<p>On Chrome I get an unhandled exception that HTMLDivElement doesn't contain method html(), while on IE8 and FF simply nothing happens, although when viewing in degub, .html() does appear in the dynamic method list.</p>

<p>What am I doing wrong?</p>

<p>EDIT: No, I'm not passing the id with #. I've tried that, it returned null, now it actually returns something. Is there another problem??</p>

<p>EDIT again: seems I was doing something else wrong. I've put the # back, now it works.</p>
