If I hover the mouse over a div the mouse cursor will be changed to the cursor like that in HTML anchor.
How can I do this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Assuming your
divhas anid="myDiv", add the following to your CSS. Thecursor: pointerspecifies that the cursor should be the same hand icon that is use for anchors (hyperlinks):CSS to Add
You can simply add the cursor style to your
div‘s HTML like this:EDIT:
If you are determined to use jQuery for this, then add the following line to your
$(document).ready()or bodyonload: (replacemyClasswith whatever class all of yourdivs share)