I've been trying to figure this out for a good hour and I know it'll be super basic for someone out there. I'm trying to set a background with jQuery based on a variable called $the_path.
Right now the background is getting set to "$the_path" instead of the actual value of $the_path. How can I can the statement to evaluate properly?
$('body').css({'background' : 'url($the_path)','backgroundPosition' : 'center 50px'});
Many Thanks!
$('body').css({'background' : "url('+ <?php echo $the_path; ?> +')",'backgroundPosition' : 'center 50px'});