eddysilvamendes / jquery-star-rating-plugin

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

Reset checked state #54

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi! first thanks for this usefull plugin ;)

Second I want to know is it possible to reset the state of the input when
the callback function is called (ie. when there's an error submitting the
vote trought ajax) :)

thanks ;)

Original issue reported on code.google.com by patrick....@gmail.com on 31 Jan 2010 at 9:30

GoogleCodeExporter commented 8 years ago
Yes, but the plugin itself does not hold the original state of the elements.
To do this, you need to reset the form the usual way (with a reset button), 
then invoke 
the "draw" method:

$('.star').rating('draw');

Original comment by fyneworks on 26 Mar 2010 at 4:01

GoogleCodeExporter commented 8 years ago
ok! thank you :D

Original comment by patrick....@gmail.com on 26 Mar 2010 at 7:25