I have a simple problem. I am getting this carInfo data from a JSON file but can't get the img source to properly part the variable $imgsrc instead of parsing it as a string called "$imgsrc". Then I am appending this to my HTML code.
var $imgsrc = "images/vehicles/" + carInfo[i].smallImage;
var $container = .... + '<img src = '$imgsrc'>' + ....;
$('body').append($container);
EDIT:
+ ... '<img src = "images/vehicles/ + '$imgsrc'">' + ...
This gives me a error due to the opening single quote of $imgsrc is actually closing the single quote in the beginning of the tag