We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello,
I want to know if someone knows how or what is the way to handle events on elements dynamically added to the DOM?, since the next examples don't do.
$$('.swipeme_right').swipeRight( function(event) { $$(this).children('.bubble').toggleClass('hidden'); }); $$('.swipeme_right').bind('swipeRight', function(event) { $$(this).children('.bubble').toggleClass('hidden'); }); $$('.swipeme_right').delegate('li', 'swipeRight', function(event) { $$(this).children('.bubble').toggleClass('hidden'); }); $$('.swipeme_right').on('swipeRight', 'li', function() { $$(this).children('.bubble').toggleClass('hidden'); });
All four examples do the same.
I think that it should be by using the delegate method() but does not, or maybe with the method on() like jquery 1.7 but neither does.
Thank you in advance.
The text was updated successfully, but these errors were encountered:
Try using $$('selector').tap(function(){});
Sorry, something went wrong.
No branches or pull requests
Hello,
I want to know if someone knows how or what is the way to handle events on elements dynamically added to the DOM?, since the next examples don't do.
All four examples do the same.
I think that it should be by using the delegate method() but does not, or maybe with the method on() like jquery 1.7 but neither does.
Thank you in advance.
The text was updated successfully, but these errors were encountered: