Inserting icon image problem! Jquery

Inserting icon image problem! Jquery
0

#1

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.


#3

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

var icon = “