$("#cal2").click(function () {
$("#date2").datepicker("show");
});
- $("#offCal1").click(function () {
+ /* $("#offCal1").click(function () {
$("#dateOff1").datepicker("show");
});
$("#offCal2").click(function () {
$("#dateOff2").datepicker("show");
- });
+ });*/
/* today = new Date();
minDays = 2;
today.setDate(today.getDate() + minDays);
});
- $("#dateOff1").datepicker({
+ /* $("#dateOff1").datepicker({
minDate: 2,
onSelect: function (date) {
$("#dateOff1").datepicker({dateFormat: 'yy-mm-dd'}).val();
departure = $("#dateOff2").val();
}
- });
+ }); */
});
$("#cal2").click(function () {
$("#date2").datepicker("show");
});
- $("#offCal1").click(function () {
+ /* $("#offCal1").click(function () {
$("#dateOff1").datepicker("show");
});
$("#offCal2").click(function () {
$("#dateOff2").datepicker("show");
- });
+ });*/
/* today = new Date();
minDays = 2;
today.setDate(today.getDate() + minDays);
});
- $("#dateOff1").datepicker({
+ /* $("#dateOff1").datepicker({
minDate: 2,
onSelect: function (date) {
$("#dateOff1").datepicker({dateFormat: 'yy-mm-dd'}).val();
departure = $("#dateOff2").val();
}
- });
+ }); */
});
<input type="text" placeholder="Search by property" name="s">
</div>
<div class="small-6 res-date columns">
- <input id="dateOff1" type="text" placeholder="Arrive" name="ArrivalDate" required="required">
+ <input id="dateOff1" type="date" placeholder="Arrive" name="ArrivalDate" required="required">
<img id = "offCal1" src="<?php echo get_template_directory_uri(); ?>/assets/calendar-icon.jpg">
</div>
<div class="small-6 res-date columns">
- <input id="dateOff2" type="text" placeholder="Depart" name="DepartureDate" required="required"><img id ="offCal2" src="<?php echo get_template_directory_uri(); ?>/assets/calendar-icon.jpg">
+ <input id="dateOff2" type="date" placeholder="Depart" name="DepartureDate" required="required"><img id ="offCal2" src="<?php echo get_template_directory_uri(); ?>/assets/calendar-icon.jpg">
</div>
<div class="small-6 guest columns">
<!--<input id="offGuests" type="text" placeholder="Guests" > -->