日历日期选择器

时间:2019-01-21 08:34:09

标签: javascript jquery html5 datepicker

我想在我的网站中使用Jalali日历datepicker,但由于用于响应式设计的meta标签,因此在平板电脑或智能手机中无法使用。我添加了meta标签  <meta name="viewport" content="width=device-width, initial-scale=1.0">不起作用

var regional = "en",
  isJalali = false;
$('.datepicker').click(function(e) {
  datepicker(this, {
    single: true,
    isJalali: isJalali,
    changeMonth: true,
    changeYear: true,
    minDate: "-150y",
    maxDate: $("#AdaultMaxDate").val(),
    yearRangeJalali: "1250:1500",
    yearRangeGregorian: "1900:2030",
    numberOfMonths: 1,
  });
});
<script src="http://www.hamsafartour.com/js/jquery.min.js"></script>
<script src="http://www.hamsafartour.com/js/datepicke.js"></script>
<script src="http://www.hamsafartour.com/js/jqueryUi.js"></script>
<link href="http://www.hamsafartour.com/css/DatePicker.css" rel="stylesheet" />
<input class="datepicker" type="text" readonly autocomplete="off" />

0 个答案:

没有答案