+ 1
How to update 2 divs using AJAX PHP?
I want to update LIKE DISLIKE count as well as the VOTE count containing in two different divs
2 Respostas
+ 1
I notice you're starting to learn jQuery. You don't have to, but I'd recommend that you finish reading through jQuery. jQuery makes it INSANELY easier to interact with AJAX/PHP and accomplish what you're trying to do.
If you want a PHP/vanilla JS example, I can still post it, but I still can't stress enough how much better it is in jQuery to deal with this situation. Let me know.
+ 1
You can use .ajax() method of jQuery and udate the vote count in your database table. That's All |