Change cursor to hand on mouseover in GridView using jQuery

In this post, I will show you how to change the cursor to Hand style cursor when user takes mouse on the rows of ASP.NET GridView so that the user will come to know that it is clickable.


Also read my ASP.NET Grid View with jQuery series posts.

Below jQuery code will change the mouse cursor to pointer on hover event.
$(document).ready(function() {
  $("#<%=gdRows.ClientID%>  tr:has(td)").hover(function() {
     $(this).css("cursor", "pointer");
  });
});
Feel free to contact me for any help related to jQuery, I will gladly help you.
SHARE

Nothing shocks me, I'm a Software Engineer. And I am not young enough to know everything. I live in World Wide Web and from there take care of this website. This website communicates about my work, learning and experience. I believe life is short, and it is for loving, sharing, learning and connecting. So lets connect..