I have this line of jQuery:

```
$("#colorimage").css('background','url(images/bw.jpg)');

```

First question: the way that this is working, when the background image is set with CSS via jQuery, from where is it looking for the images folder?

Second question: is there a way I can insert a Javascript variable into the second argument? I have a base url stored in a js variable but doing something like this:

```
$("#colorimage").css('background','url(' +  baseurl + 'images/bw.jpg)');

```

doesn't work.

**EDIT:**
baseurl is a Javascript variable, right now it is <http://localhost/test/> but it will be changing, which is why I want to use a variable.

**EDIT 2:** It was a path problem, thank you guys for the answers