Tuesday, 17 September 2013

How do I include a variable in jquery .html

How do I include a variable in jquery .html

Trying to include a variable in my jquery:
var width = $(this).width();
$("#dynamic").html(".dropdown-bottom:before{left:'width'px;}");
How do I indicate that width is a variable in the .html?

No comments:

Post a Comment