In line 6, I change $(document).ajaxComplete(function(){ instead of $(function(){ because I want to display rate in a div after ajax.
When I click star to rate, example current rating is 5 stars, but I want to change my rating, so I click 3 star. In the terminal, it notices that update complete. But in view it displays 5 star.
Any ideas to help me.
Sorry about my English
In line 6, I change
$(document).ajaxComplete(function(){
instead of$(function(){
because I want to display rate in a div after ajax. When I click star to rate, example current rating is 5 stars, but I want to change my rating, so I click 3 star. In the terminal, it notices that update complete. But in view it displays 5 star. Any ideas to help me. Sorry about my English