Turn a number into star rating display using jQuery and CSS

Posted by Max on Stack Overflow See other posts from Stack Overflow or by Max
Published on 2009-12-31T23:56:25Z Indexed on 2012/06/27 15:16 UTC
Read the original article Hit count: 403

Filed under:
|
|
|
|

I have been looking at jquery plugin and was wondering how to adapt that plugin to turn a number (like 4.8618164) into a 4.8618164 stars filled out of 5. Basically interpreting a number <5 into stars filled in a 5-star rating system using jQuery/JS/CSS. Note that this would only display/show the stars rating from an already available number and not accept new ratings submissions. Any help would be greatly appreciated. Thanks.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery