OK, my brain has apparently stopped functioning. If I want the background image assigned to one div element to be assigned to another div element as part of a function, why doesn't the following work?

It works if I specify the actual background image within the function, so I know the image is there, and I know it's been properly assigned to div2, but div1's background image doesn't change.

Thanks for any help!