akhanisatyammg / jquery-star-rating-plugin

Automatically exported from code.google.com/p/jquery-star-rating-plugin
0 stars 0 forks source link

Reset stars #85

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Add the component on page
2.Rate it to 4 for example
3.submit this value using jquery ajax post

After the ajax call is finished, how can I reset the value of the rating 
component back to 'no stars' displayed?

I tried something like $('selector_for_stars').rating('select', 0) but this is 
selecting the first star.

Thank you in advance for you answer

Original issue reported on code.google.com by ionut.va...@gmail.com on 1 Jun 2011 at 1:09

GoogleCodeExporter commented 8 years ago
$(selector).rating('select', false); worked for me.

Original comment by LordDest...@gmail.com on 4 Jun 2012 at 3:24

GoogleCodeExporter commented 8 years ago

Original comment by diego.a...@gmail.com on 23 Feb 2013 at 5:12

GoogleCodeExporter commented 8 years ago
$(selector).removeClass("fullStar") works

Original comment by michaela...@gmail.com on 31 Mar 2014 at 7:00