I need to send this to the capIn() and capOut() functions so that I can target the children divs of the correct .slide. How do I pass this to a function. this would be what is hovered.
$(".slide").hover(function(){capIn();capOut();});
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.
Looking at the function names
capInandcapOutit makes sense that they are 2 different behaviors. I believe you have 2 different behaviors onmouseenterandmouseleaveevents.hovermethod can take 2 methods, one formouseenterand another formouseleave. You can try thisYou can use
thisinsidecapInandcapOutit will point to.slideelement which you hovered on.