akhanisatyammg / jquery-star-rating-plugin

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

Zero Rating (the worse of ratings, but nevertheless a rating) #110

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Any chance of adding a ZERO (for really bad) rating?

I can only see the (1 to n) or clear rating options... Maybe i'm not looking 
right.

Thanks

Original issue reported on code.google.com by RootShel...@gmail.com on 25 Aug 2012 at 2:55

GoogleCodeExporter commented 8 years ago
I think this is more of a design issue. The values that get submitted are not 
in any way restricted by the control. You could make the control required and 
make the first control have a value of "0".
<input class="rating required" value="0".../>
<input class="rating required" value="1".../>
<input class="rating required" value="2".../>
<input class="rating required" value="3".../>
<input class="rating required" value="4".../>
...so the first star would be a "zero".

Alternatively, you can treat "no value" (ie.: user clicked the "cancel" button 
to clear the rating) as a "zero".

Original comment by diego.a...@gmail.com on 24 Feb 2013 at 1:00