LiveQuery لا يرتبط بعد إدراج دوم
-
12-11-2019 - |
سؤال
أنا لا أفهم لماذا لا يربط LiveQuery الحدث، ولكن لا بد لي من استخدام. انقر هذا مجرد مثال، والذي قد يستخدم أيضا. انقر فوق ()، ولكن في التعليمات البرمجية الحقيقية التي أجبرت على استخدام LiveQuery. هل يعرف أحد لماذا لا يعمل LiveQuery؟ giveacodicetagpre.
المحلول 2
I added a random id to the last comment, then I selected it with $('#myid'), not using 'last()'. Then I bind it and started to work
نصائح أخرى
Try replacing
comment.find(".remove").livequery("click", function(e){
with this
comment.find(".remove").live("click", function(e){
لا تنتمي إلى StackOverflow