Path for image- assets/rating/star.png Now how to give this path in external js I have also loaded the url helper.
$(document).ready(function(){
$("#1_star").hover(function(){
$("#1_star").attr("src","Path for image");
});
});
I am doing this way
$(document).ready(function(){
$("#1_star").hover(function(){
$("#1_star").attr("src","<?php echo base_url('assets/rating/star.png');?>");
});
});