Remove background color and show picture instead

Remove background color and show picture instead

Good afternoon,

I have this code in index:
    <div id="Menu"> ...  command images... <div/>

    and then other line:

    <div id="1" style="position: absolute; width: 29px; height: 29px; top: 30px; left: 30px; background-color: rgb(0, 0, 0);"></div>

    so the idea is that when you click on a command image the change of several divs with specific IDs occur. I am trying something like:
    1. $("#1").removeAttr('bacground-color');
    2. $( "#1" ).attr( "bg-image", $src );

    ... in other way I am trying to see just a picture instead of color... And the color of the div with ID 1 remains unchanged.

    Obviously I am missing something because it just doesn't work... Can you please help me?

    Have a nice Sunday