Файл: Jalendar2/jalendar-selector-demo.html
Строк: 44
<?php
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Jalendar Selector</title>
<script type="text/javascript" src="js/jquery-1.11.3.min.js"></script><!--jQuery-->
<!-- Jalendar files -->
<link rel="stylesheet" href="style/jalendar.css" type="text/css" />
<script type="text/javascript" src="js/jalendar.min.js"></script>
<!-- Jalendar files #end -->
<script>
$(function(){
// $('#myCalendar').jalendar();
$('#myCalendar').jalendar({
type: 'selector',
color: '#52D3D5',
color2: '#52D5A4',
done: function() {
// #your-id input.data1 is selected day data1
alert($('#myCalendar input.data1').val())
}
});
$('#myCalendarInput').jalendar({ type: 'selector' });
});
</script>
<!-- this area just for demo -->
<style>
h1 {
font: 26px 'Helvetica Neue', 'Arial', sans-serif;
}
.text-center {
text-align: center;
}
</style>
<!-- this area just for demo #end -->
</head>
<body>
<div class="text-center">
<h1>Jalendar Selector</h1>
<div id="myCalendar" class="jalendar"></div>
<br><br><br>
<div class="jalendar-input">
<input type="text" readonly placeholder="Select Date" />
<div id="myCalendarInput" class="jalendar"></div>
</div>
</div>
</body>
</html>
?>