-2

If my div is set to visibility:hidden will that affect the behavior onmouseenter or onmouseout functions?

4 Answers 4

5

Yes it will. Despite that the element remains visually in the document flow by leaving a space, you can't mouse-in to it because it is not visually on the page.

1
  • Did this not respond to your question? Dec 3, 2012 at 15:01
0

Something which is hidden is absent in the page. so you can't invoke any mouse events.

0

Yes, although it still catches some space in the flow, you can't interact with it.

See example here.

0

yes it will get affected. As the div is hidden, mousein, mouseout and other related events will not be triggered. Check this silly fiddle.

$("#foo").mouseout(function(){ // This will stop being triggered once its invisible

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.