I want to add stars in my website that users can use to add reviews in my website. Like Play store shows stars for users to give rating. Have anyone have a way to do this.
Asked
Active
Viewed 1,620 times
-1
-
what did you try? – Alexan May 29 '17 at 04:06
3 Answers
0
You can do it with CSS, HTML5 and JavaScript or you can use specific libraries for it. Check how to design star rating with css here
And for javascript check it here
Hope I helped

Mukhammad Ali
- 810
- 7
- 14
0
Best way to implement is to use FontAwesome for showing star and half star and handle clicking event on them by jquery or angular or ...

Ramin Farajpour
- 297
- 2
- 10
0
here is the complete plugin named jquery bar rating with call back functionality
$(function() {
$('#example').barrating({
theme: 'fontawesome-stars-o',
//readonly: true,
// showSelectedRating:false
});
});
<link href="http://maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css" rel="stylesheet"/>
<link href="https://cdnjs.cloudflare.com/ajax/libs/jquery-bar-rating/1.2.2/themes/fontawesome-stars-o.css" rel="stylesheet"/>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="https://cdn.bootcss.com/jquery-bar-rating/1.2.2/jquery.barrating.min.js"></script>
<select id="example">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
</select>

Muhammad Muzamil
- 1,013
- 2
- 18
- 25