Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make an awesome star rating

Is there a simple way to generate a 5 star rating element in Jquery-mobile? Similar to http://orkans-tmp.22web.net/star_rating/.

enter image description here

like image 416
lajlev Avatar asked Jun 26 '11 12:06

lajlev


1 Answers

You can use any jQuery plugin that fulfills this task. In the past, I have used the jQuery Star Rating plugin at

http://www.fyneworks.com/jquery/star-rating/

The only thing you need to think about is to stop jQuery Mobile from rendering the radio buttons with its own style. You can achieve this by adding data-role="none" to the input tag, see

http://jquerymobile.com/demos/1.0b1/#/demos/1.0b1/docs/forms/forms-all-native.html

like image 128
Christoph Baudson Avatar answered Sep 21 '22 15:09

Christoph Baudson