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

user730569 picture user730569 · May 9, 2011 · Viewed 91.9k times · Source

I want to change the style of the cursor as if it were going over a link. How do I do this?

Answer

JohnP picture JohnP · May 9, 2011

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

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

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