星级选择,评分选择,自定义个数/等级
XML/HTML Code
- <div class="rating" data-rating-max="5"></div><br>
- <br>
- <div class="rating" data-rating-max="6"></div><br>
- <br>
- <div class="rating" data-rating-max="7"></div><br>
- <br>
- <div class="rating" data-rating-max="8"></div><br>
- <br>
- <div class="rating" data-rating-max="8"></div><br>
- <br>
- <script type="text/javascript">
- /* place inside document ready function */
- $(".rating").starRating({
- minus: true // step minus button
- });
- </script>
原文地址:http://www.freejs.net/article_biaodan_181.html