Thursday, 15 August 2013

Create an image from a variable of the image's src

Create an image from a variable of the image's src

The variable imageOne is a correct path to an image. Why does the
following not create an image with that path?
jQuery('#main-img-cont').prepend('<img src="'imageOne'" />');

No comments:

Post a Comment