Changing a background image upon 1st click - then changing it back again on the 2nd click with jquery
By : Krunal
Date : March 29 2020, 07:55 AM
may help you . it is because of css rule precedence, the id rule has precedence over class rule. In your case the id rule #tab_box1 is having background image set, then you are trying to change it using a class rule .one.
background:url('http://placehold.it/32/f00000') no-repeat center center !important;