Popular
Newest
Updated
Sign in
Create an account
Categories
Admin Templates
204
Multipurpose Templates
164
Landing Pages
149
Portfolios & Resumes
86
Ecommerce
46
Blogs & Magazines
26
Directories & Listings
26
UI Kits & Website Builders
10
Documentation
5
Specialty
105
Topics
General
277
Business & Corporate
118
Design & Creative Services
114
Apps & Software
54
Retail & Shopping
34
Startups & SaaS
27
Marketing & Conversion
21
Restaurants & Cafes
17
Education & Learning
16
Jobs & Hiring
15
See all →
Compatible with
Bootstrap
774
PHP
42
React
41
Tailwind CSS
38
Laravel
26
Python
24
Angular
23
Django
20
Vue.js
20
ASP.NET Core
14
See all →
Discussion on
Star Travel - Tour Booking Theme + Admin
Details
Discussion
Back to discussions
I want to disable some list of dates […]
ydharia
4 years ago
i want to disable some list of dates and previous dates.
i tried to disable but no t working. in this page single-hotel-right-sidebar.html
my code for disable :
in custom.js
var disabledDates = ["2019-05-14"];
jQuery(document).ready(function() {
"use strict";
$(".ed-datepicker input.form-control").focus(function() {
$(".sbOptions").css("display", "none")
}), $(".ed-datepicker").datepicker({
beforeShowDay: function(date){
var string = jQuery.datepicker.formatDate('yy-mm-dd', date);
return [ disabledDates.indexOf(string) == -1 ]
},
minDate: 0,
format: "mm/dd/yyyy",
autoclose: !0,
orientation: "top auto",
todayBtn: "linked",
todayHighlight: !0
});
});
minDate: 0,
also not working for disable previous dates
Reply
Close
I want to disable some list of dates […]
i tried to disable but no t working. in this page single-hotel-right-sidebar.html
my code for disable :
in custom.js
var disabledDates = ["2019-05-14"];
jQuery(document).ready(function() {
"use strict";
$(".ed-datepicker input.form-control").focus(function() {
$(".sbOptions").css("display", "none")
}), $(".ed-datepicker").datepicker({
beforeShowDay: function(date){
var string = jQuery.datepicker.formatDate('yy-mm-dd', date);
return [ disabledDates.indexOf(string) == -1 ]
},
minDate: 0,
format: "mm/dd/yyyy",
autoclose: !0,
orientation: "top auto",
todayBtn: "linked",
todayHighlight: !0
});
});
minDate: 0,
also not working for disable previous dates