jQuery

【jQuery】jQueryを使用した星評価プラグインStars jQuery

October 11, 2017
rating-stars

Stars jQueryはjQueryを使用した星評価プラグイン。

HTML

			<div class="full-md">
			<div id="rating">
			<span class="like-label">Stars: </span>
			<span class="rating_star"><i class="fa fa-star fa-2x" aria-hidden="true"></i></span>
			<span class="rating_star"><i class="fa fa-star fa-2x" aria-hidden="true"></i></span>
			<span class="rating_star"><i class="fa fa-star fa-2x" aria-hidden="true"></i></span>
			<span class="rating_star"><i class="fa fa-star fa-2x" aria-hidden="true"></i></span>
			<span class="rating_star"><i class="fa fa-star fa-2x" aria-hidden="true"></i></span>
			</div>
			<div class="hidden">
				<input type="radio" name="rating" value="1">
				<input type="radio" name="rating" value="2">
				<input type="radio" name="rating" value="3">
				<input type="radio" name="rating" value="4">
				<input type="radio" name="rating" value="5">
			</div>
			
			</div>

JS

	<script src="js/jquery-3.2.1.js"></script>
	<script src="js/scripts.js"></script>