$( '.items' ).click(function(){ var this_img = this.css('background-image'); $( '#image' ).css('background', this_img); return false; });