index.html 1.6 KB
<!DOCTYPE html>
<html lang="en">
<head>
    <title>Multi Month Week Picker</title>
    <meta name="description" content="Multi month week picker">
    <meta name="keywords" content="week picker,multi month,calendar,JavaScript">
    <meta name="author" content="Morshed Alam">
    <meta charset="UTF-8">
    <link href="week-picker-view.css" rel="stylesheet"/>
</head>

<body>

<div class="container">
    <h2><a href="https://github.com/morshedalam/week-picker">Multi month week picker</a></h2>
    <a href="https://github.com/morshedalam/week-picker" class="btn btn-mini">Repository</a>
    <a href="https://github.com/morshedalam/week-picker/zipball/master" class="btn btn-mini">Download</a>
    <br/><br/>


    <h4>Example</h4>

    <div class="well">
        <input data-weekpicker="weekpicker" id="weekpicker1" data-months="1"/>
		 <input data-weekpicker="weekpicker" id="weekpicker2" data-months="1"/>
		 <input data-weekpicker="weekpicker" id="weekpicker3" data-months="1"/>
		 <button data-weekpicker="weekpicker" id="weekpicker4" data-months="1">周</button>
       
    </div>
	<button onclick="getValue()">获取值</button>
    <p>Specifying start of week via data tag.</p>



<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
<script type="text/javascript" src="week-picker.js"></script>
<script>
function getValue(){
	alert("w1=" + $("#weekpicker1").val() + " == w2=" +  $("#weekpicker2").val() + " == w3=" +  $("#weekpicker3").val() + " == w4=" +  $("#weekpicker4").val());
	}
	 $("#weekpicker4").change(function(e){
		console.log("-------");
		console.log($(this).val());
	});
</script>
</body>
</html>