سؤال

أنا لا أفهم لماذا لا يربط 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){
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top