Сообщение от karden
|
Можно ли сделать так, чтобы при переключении месяца (вперед - назад) на любом из них месяц переключался на всех?
|
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>jQuery UI Datepicker - Icon trigger</title>
<link rel="stylesheet" href="http://code.jquery.com/ui/1.11.4/themes/sunny/jquery-ui.css">
<style type="text/css">
#ui-datepicker-div{
font-size: 12px;
}
</style>
<script src="http://code.jquery.com/jquery-1.10.2.js"></script>
<script src="http://code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
<script>
$(function() {
$(".datepicker").datepicker({
changeYear: true,
firstDay: 1,
onChangeMonthYear: function(year, month, el) {
$(".datepicker").datepicker("setDate", month + "/1/" + year);
}
});
});
</script>
</head>
<body>
<div class="datepicker"></div><div class="datepicker"></div>
</body>
</html>