jQuery - Bind an event handler with .mouseleave

0 votes
121 views
added Jul 9, 2019 in jQuery by LC Marshal Captain (25,770 points)

Bind an event handler to be triggered when mouse leaves an element, or trigger that handler on an element. src

$('#results').mouseleave(function() {
  $(this).css({'display': 'none', 'height': '200px' });
});

 

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...