Inserting icon image problem! Jquery

Hey,

$('#icon').html(icon);

This gave me the URL of the icon variable but i want the image instead. What should i change to get a image instead? my icon var changes according to the weather. I’m currently working on my weather app project.

Make sure you assign an tag embedded in Javascript strings into the icon variable. For example,

var icon = “