Skip to content Skip to sidebar Skip to footer

Jquery Ajax: Total Likes Not Updating For Post When Pressing Like Button

Two JQuery Ajax calls. First brings back user messages from MySQL, the number of likes for that message and a button for the user to like the message. This request is working. Seco

Solution 1:

have you tried to echo the target? or just simple alert? if that not working it means the target is not sighted, this is specially when the elements are appended. so you need to have a static target

$("#static-target").on("click",".real-target",function(){
 //do here
});

Post a Comment for "Jquery Ajax: Total Likes Not Updating For Post When Pressing Like Button"