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