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