Select background image with jQuery

Select background image with jQuery

I have the following CSS adding a background image to a series of list items each of which carry a unique id.
  1. .revolve
  2. {
  3. background: url(images/page_edit.png) 0 9px no-repeat #fff; 
  4. }

I am trying to add a class to the background image using jQuery.  

  1. $("background-image","url(images/page_edit.png)").addClass("edit_tasks")

So I can link to a page (passing id parameter) using click event

  1. $(".edit_tasks").click(function(){
  2. categoryId = $(this).parent("li").attr("id");
  3. window.location = 'tasksdisplayed.php?category_id='+categoryId
  4. });
But the approach used above to select the background image isn't working.

Any help would be appreciated.
Thanks,
Jim