Friday, September 7, 2012

Change Cursor to hand on mouseover using JQuery...



When ever we need to change the mouse cursor using JQuery then we can do it very easily.


In my today's post I will show you how can we change the mouse cursor to the Hand type cursor while user hover mouse on the particular element.
It is very simple just look at the below JQuery code.
 



My Code:


$(document).ready(function()
  {
    $("#elementid").hover(function()
     {
       $(this).css("cursor", "hand");
     });
});


In above code "elementid" is the name of the element on which you want a mouse pointer as a hand while hovering a mouse over it.

Happy Coding...!!!

No comments:

Post a Comment