There is two ways of achieve the css set background image using jquery.
First:
1 | $( '.classname' ).css({ 'background' : 'url(images/tabs3.png)' }); |
Second:
1 | $( '.classname' ).css( 'background' , 'url(images/tabs3.png)' ); |
The first method can set multiple css at one time. While the second method only one css per time.
What do you think?