css - fontello spinner image css integration

190 Views Asked by At

I am having a background image defined in css and I want to replace with another fontello spinner image class. How can I do this?

#divOverLay.show {
    background-color: rgba(0, 0, 0, 0.0);
    background-image: url('../images/spinner_blue.gif');
    background-repeat: no-repeat;
    background-position: center;
}

The fontello class which I want to release is below (this is to replace the above background-image):

"demo-icon icon-arrows-ccw"
1

There are 1 best solutions below

2
On

Not sure I understand your question, but you want to change css class?

If so, use the jQuery css() method

$('#divOverLay.show').attr('class', 'demo-icon icon-arrows-ccw');