changing span id html

changing span id html

I am trying to change the html of a span.  Here is my code:

$("'#"+spanName+"'").html('<img src="images/image.jpg" width="20" height="20" />');

It does not modify the html though.