I'm using Jquery form plugin <http://jquery.malsup.com/form/#ajaxForm> to upload images through ajax to the server side programmed in Django. When the image is uploaded it automatically changes the background to that image. Everything is perfect(the images get stored in the database and the response is return) but how to update the css with that responseText.

Here is my javascript code: <https://gist.github.com/2381991>

Django response:

```
 url('home/nirmal/try/files/background/monalisa.jpg')

```

Django views.py:

```
@login_required
def backgroundview(request):
    if request.is_ajax():
        form = BackgroundModelForm(request.POST, request.FILES)
        if form.is_valid():
            try:
                g = BackgroundModel.objects.get(user=request.user)
            except BackgroundModel.DoesNotExist:
                data = form.save(commit=False)
                data.user = request.user
                data.save()
            else:
                g.background = request.FILES['background']
                g.save()
            return HttpResponse("url('"+g.background.url+"')")
    else:
        form = BackgroundModelForm()
        return render_to_response("cover.html", {'form': form}, context_instance=RequestContext(request))

```

I don't know how to update the css: background-image: url() in jquery.
Could anyone help me?

Thanks!