Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it work with dynamically added element? #62

Closed
themenow opened this issue Apr 16, 2017 · 3 comments

Comments

@themenow
Copy link

commented Apr 16, 2017

I tried the following code but no luck

$(document).on('mouseenter.hoverIntent', element, function() {});

@twidi

This comment has been minimized.

Copy link

commented Apr 19, 2017

As showed on https://briancherne.github.io/jquery-hoverIntent/, you should do something like

$(document).hoverIntent(
    function() { console.log('in') },
    function() { console.log('out') },
    'selector'
)

It's what I do and it works on elements present at first and dynamically added ones

@usmonster

This comment has been minimized.

Copy link
Collaborator

commented Apr 19, 2017

Thanks @twidi for responding! :)

@kamiyeye, I'll close this issue for now, but please comment again if you think you've found a bug or limitation in the plug-in, or if you have any other directly-related follow-up question.

@usmonster usmonster closed this Apr 19, 2017

@twidi

This comment has been minimized.

Copy link

commented Apr 19, 2017

@usmonster: you're welcome, I just started using this plugin and as always, I do a quick check on issues and pull requests to know the actual defects, and seen this, as I just did it in my code, so... :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.