Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I set the important flag in a css with jQuery? [duplicate]

Tags:

jquery

css

Possible Duplicate:
Jquery css: applying !important styles

I have the following code:

$("body")
    .ajaxStart(function () {
        $(this).css({ 'cursor': 'progress' })
    })
    .ajaxStop(function () {
        $(this).css({ 'cursor': 'default' })
    });

This works but not when I hover over a link where I have a hover and a different cursor. Is there a way that I can set the CSS cursor property above to important with jQuery>

like image 326
Samantha J T Star Avatar asked Dec 16 '22 19:12

Samantha J T Star


1 Answers

Try this code for example:

$(this).css({ 'cursor': 'default !important' })
like image 52
Alessandro Minoccheri Avatar answered Feb 15 '23 22:02

Alessandro Minoccheri