0
<script src="https://cdnjs.cloudflare.com/ajax/libs/rateYo/2.3.2/jquery.rateyo.min.js"> </script>
<script>
    window.onload = function () {
        $("#additional_rating").rateYo({
            starWidth: "18px",
            rating: 4
        });
    };
    $("#quality_rating").rateYo({
        starWidth: "18px",
        rating: 4
    });
</script>

I can assure you that ids are correct. The problem is that, after the window loads, I get an error that rateYo is not a function. The second works. Could it be from a double loading, my other code, or I do something wrong there? It happened for other plugins too...

Popescu Flaviu
  • 95
  • 2
  • 11

0 Answers0