Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 691
user730569 Avatar asked May 09 '11 05:05

user730569


People also ask

How do I customize my cursor in HTML?

Answer: Use the CSS cursor property You can define a custom cursor using the CSS cursor property. The cursor property takes the comma-separated list of user-defined cursors value followed by the generic cursor. First of all create cursor image and save it with the extension .


1 Answers

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

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

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

like image 119
JohnP Avatar answered Oct 03 '22 17:10

JohnP