half values for stars

Oct 17, 2012 at 3:53 PM

Hi ,

I am trying to use the plugin but I could not modify it to have half values for starts . What I need is 10 stars with values from (0.5 to 5) so I need the first star with value of 0.5 and I dont want the half values to be shown with half colored stars. Is there any solution for this?

Thanks,

Golnaz

Oct 17, 2012 at 4:19 PM
Edited Oct 17, 2012 at 4:19 PM

Hi,

Setting the value of a star is not supported. I guess the easiest solution would be to set the min value at 0, max value at 10, and step size at 1.

<div class="rateit" data-rateit-min="0" data-rateit-max="10" data-rateit-step="1"></div>

 

Than when you get a value in your code, simply divide it by 2.

regards,

Gidon

Oct 17, 2012 at 4:28 PM

Thank you for your response.

can you show how to implement this division for the example 5 "javascript interaction"  to show what I want on hover over . and also how to remove the "null" from showing in this example.

Thank you,

Golnaz

Oct 17, 2012 at 4:35 PM

See itin action over here: http://jsbin.com/ugahut/1/edit

Oct 17, 2012 at 4:39 PM

 

That was a great help !!

Thank you.

Oct 17, 2012 at 4:40 PM

You're welcome.