I'm working on a Codeigniter project. I have a jQuery
file that sets background-image
to the body:
$('body').css('background-image','url(<?php echo base_url("assets/images/bg2.png");?>)') ;
I tried this to set the image path, but doesn't work.
What should I do?