I have this: $('#id').click( function(){ $(this).css('background-image','url(images/ img.jpg)'); } );
Problem is that I want to use a path (images/img.jpg) that is relative to my CSS file, not to the current page... The obvious first question will be "why not just put /path/to/images?" The answer is I'm trying to incorporate something into a drupal module and so I cannot be certain of what the full path will be. Thoughts? Alex