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

Events not fire on templates elements after load - Please put it in the read.me #42

Open
Raf-sns opened this issue Mar 21, 2018 · 0 comments

Comments

@Raf-sns
Copy link

Raf-sns commented Mar 21, 2018

Events not fire on templates elements after load ...
I looked for a solution for two hours, I almost gave up the pulg-in ...

This should be reported in the read.me ...
From stackoverflow : (by Eduardo Quintana)

"Use event delegation this will add the handler for future elements.

If you use $(".button") and the element is not in the DOM already the event handler will not work because noting will be selected

$(document).on("click",".button",function(){
console.log('click');
});
"

hope to help,
Raf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant