How do I put a variable in a string in JavaScript?
Example:
$(\'#contactForm\').animate({\"marginLeft\": \"+=680px\"}, \"slow\");
I wou
var theWidth = "680px" $('#contactForm').animate({marginLeft: "+=" + theWidth}, "slow");