Use jQuery to change css for "html" and "*"

Sorry if this is incredibly simple, but I want to be able to do the following in jQuery.

Current CSS

* { cursor: url('/web/resources/graphics/blank.cur'), pointer; } html { cursor: url('/web/resources/graphics/blank.cur'), pointer; } 

Desired CSS change (only through jQuery)

 * { cursor: url('/web/resources/graphics/blankDot.cur'), pointer; } html { cursor: url('/web/resources/graphics/blankDot.cur'), pointer; } 
+4
source share
1 answer
 $("*").css("cursor", "url('/web/resources/graphics/blankDot.cur'), pointer"); 

html already covered * , so you should discard the html rule from your CSS.

+7
source

Source: https://habr.com/ru/post/1308737/


All Articles