Help dropping in variable for css property
Hi all,
Hope everyone is well and nice to meet you. I am having a problem using a variable as a css property...can anyone please help me with the syntax:
-
var width = $("a.tooltip").width() + 70;
console.log(width);
$("div#tooltip").css({ position:"relative", top:"-30px", left: "+width+"});
Thanks in advance! Luke