JQ插件:radiosToSlider

demo:
http://rubentd.com/radios-to-slider/


JQ插件:radiosToSlider_第1张图片

用法:
<script src="js/jquery-1.10.2.min.js"></script>
<script src="js/jquery.radios-to-slider.js"></script>
 
<script>
	$(document).ready( function(){
		$("#radios").radiosToSlider();
	});
</script>
 
<div id="radios">
    <input id="option1" name="options" type="radio">
    <label for="option1">1 <br>year</label>
 
    <input id="option2" name="options" type="radio">
    <label for="option2">2 years</label>
 
    <input id="option3" name="options" type="radio" checked>
    <label for="option3">3 years</label>
 
    <input id="option4" name="options" type="radio">
    <label for="option4">4 years</label>
 
    <input id="option5" name="options" type="radio">
    <label for="option5">5+ years</label>
 
</div>


Options:



你可能感兴趣的:(jquery)