jRate icon indicating copy to clipboard operation
jRate copied to clipboard

Multiple instances with predefined rating

Open ilikourou opened this issue 7 years ago • 1 comments

Hello there.

Is there any way to have multiple jRate instances within a page, but only call $("#jRate").jRate(); once?

Let's say I would like to have 5 jRate instances and each one of them has a predefined rating (obtained through a database). Does this mean I have to call $("#jRate").jRate(); 5 times, in order to obtain each rating, or can I use the #id (<div class="jRate" id="somethingUnique"></div>) inside the js code?

Thank you, Ilias

ilikourou avatar Aug 17 '17 11:08 ilikourou

I have the same problem, it doesn't work with a class, using it for multiple instances thast way as described in de documentation. it will colour all instances. you can only use multiple id's then it works, but its a hassle

danman1234 avatar Sep 30 '17 21:09 danman1234