How do I change the style of the cursor with JQuery? How do I change the style of the cursor with JQuery? javascript javascript

How do I change the style of the cursor with JQuery?


Modify the CSS cursor value by using the css() method

$('#selector').css('cursor', 'pointer');

Demo : http://jsfiddle.net/jomanlk/H6Nta/


you can play around with this

$('#divid').css('cursor','default');

for pointer

$('#divid').css('cursor','pointer');

api

http://api.jquery.com/css/


using css

http://www.echoecho.com/csscursors.htm

read here for different cursor styles

and apply it

$('#selector').css('cursor', 'value');