What's wrong with my concatenation below?
$(function(){
var bg = "http://i.imgur.com/kqRNO6M.jpg";
var html = '<div style="background:linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)),url(\"'+ bg +'\") no-repeat;">';
});
my demo is here http://jsfiddle.net/su3fpkex/
I escaped double quote with \ but couldn't seem working.
console.log(html)and check the quotes ;)