Answer the question
In order to leave comments, you need to log in
How to make a variable visible in javascript after the template is loaded?
Hello.
I have a view items
in it, I load 3 more
- article
- comments
- form with comments
I write ajax pfghjc for likes in comments. But after loading the view with comments, it does not seem to see my links with the id to which I tie up the ajax request. What could be the problem? Who will help? -)
Thanks to everyone who will respond.
Answer the question
In order to leave comments, you need to log in
The problem is that after loading you need to re-bind the DOM to the events.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question