';
}
}
jQuery('.etacont').html(child_age_selects);
}
$.noConflict();
jQuery(document).ready(function($) {
$('#checkin').datepicker({
dateFormat: 'dd/mm/yy',
autoSize: true,
selectOtherMonths: true,
minDate: '+0d',
maxDate: '+1y',
altField: '#checkin_hidden',
altFormat: 'yy-mm-dd',
onSelect: function(selectedDate, inst) {
var checkin_date = $(this).datepicker('getDate');
// $('#checkin_fulldate').html($.datepicker.formatDate('DD, d MM, yy', checkin_date));
checkin_date.setDate(checkin_date.getDate() + 1);
$('#checkout').datepicker('option', 'minDate', checkin_date);
var checkout_date = $('#checkout').datepicker('getDate');
//$('#checkout_fulldate').html($.datepicker.formatDate('DD, d MM, yy', checkout_date));
}
});
$('#checkout').datepicker({
dateFormat: 'dd/mm/yy',
autoSize: true,
selectOtherMonths: true,
minDate: '+1d',
maxDate: '+1y',
altField: '#checkout_hidden',
altFormat: 'yy-mm-dd',
onSelect: function(selectedDate, inst) {
var checkout_date = $(this).datepicker('getDate');
//$('#checkout_fulldate').html($.datepicker.formatDate('DD, d MM, yy', checkout_date));
}
});
$('#checkin').datepicker('setDate', new Date());
$('#checkout').datepicker('setDate', '+1d');
$('#checkin_hidden').val($.datepicker.formatDate($('#checkin').data('datepicker').settings.altFormat, $('#checkin').datepicker('getDate')));
//$('#checkin_fulldate').html($.datepicker.formatDate('DD, d MM, yy', $('#checkin').datepicker('getDate')));
$('#checkout_hidden').val($.datepicker.formatDate($('#checkout').data('datepicker').settings.altFormat, $('#checkout').datepicker('getDate')));
//$('#checkout_fulldate').html($.datepicker.formatDate('DD, d MM, yy', $('#checkout').datepicker('getDate')));
$('#children').change(function() {
addChildAges(this.value, 0);
});
jQuery('#booking_form_submit').click(function() {
var arrivo = $('#checkin').val();
var partenza = $('#checkout').val();
var adulti = $('#num_adulti').val();
var bambini = $('#num_bambini').val();
var url = $('a.apriform').prop('href');
url = url +"&arrivo="+arrivo+"&partenza="+partenza+"&adulti="+adulti+"&bambini="+bambini;
Shadowbox.open({
content: url,
type: "iframe",
title: "Welcome",
height: 800,
width: 800
});
//$('#booking_form').submit();
});
});
BOOKING ON LINE