修复表单验证出错

hotfix/paypal-note
Jimmy Liow 2 years ago
parent b3cb079ffb
commit 559fe20d5e

@ -166,7 +166,7 @@ Our must-dos/must-sees are…" style="height:90px;"></textarea>
<div class="trip_date_length" id="tripDateBlock" style="display: none"> <div class="trip_date_length" id="tripDateBlock" style="display: none">
<p style="margin-bottom: 10px;">Select your travel date and trip length (days).</p> <p style="margin-bottom: 10px;">Select your travel date and trip length (days).</p>
<div id='dateSelectionBlock'> <div id='dateSelectionBlock'>
<input type="text" class="arrivalDate datepicker" id="Date_Start" name="date_start" value="" placeholder="mm/dd/yyyy" autocomplete="off" style="width: auto; float: left; margin-right: 15px; height: 30px; <input type="text" class="arrivalDate datepicker" id="starting_date" name="date_start" value="" placeholder="mm/dd/yyyy" autocomplete="off" style="width: auto; float: left; margin-right: 15px; height: 30px;
margin-top: 5px;"> margin-top: 5px;">
<input type="month" id="expectedMonth" name="expected_month" placeholder="Select your expected travel date." style="width: auto; float: left; margin-right: 15px;height: 30px; <input type="month" id="expectedMonth" name="expected_month" placeholder="Select your expected travel date." style="width: auto; float: left; margin-right: 15px;height: 30px;
margin-top: 5px;"> margin-top: 5px;">
@ -506,8 +506,8 @@ Our must-dos/must-sees are…" style="height:90px;"></textarea>
minDate: "today" minDate: "today"
}); });
var quick_inquiry_button = document.getElementById("quick_inquiry_button"); var quick_inquiry_button = document.getElementById("info_page_button");
var quick_inquiry_form = document.getElementById("quick_inquiry_form"); var quick_inquiry_form = document.getElementById("info_page_form");
quick_inquiry_button.addEventListener('click', function(event) { quick_inquiry_button.addEventListener('click', function(event) {
var validateResult = validateQuickInquiryForm(); var validateResult = validateQuickInquiryForm();
@ -638,7 +638,7 @@ Our must-dos/must-sees are…" style="height:90px;"></textarea>
}); });
var $tripDateBlock = $('#tripDateBlock'); var $tripDateBlock = $('#tripDateBlock');
var $expectedDate = $('#Date_Start'); var $expectedDate = $('#starting_date');
var $expectedMonth = $('#expectedMonth'); var $expectedMonth = $('#expectedMonth');
var $dateSelectionBlock = $('#dateSelectionBlock'); var $dateSelectionBlock = $('#dateSelectionBlock');
var $expectedTravelDateBlock = $('#expectedTravelDateBlock'); var $expectedTravelDateBlock = $('#expectedTravelDateBlock');
@ -728,11 +728,6 @@ Our must-dos/must-sees are…" style="height:90px;"></textarea>
$('#tripLengthNumber').val(tripLength); $('#tripLengthNumber').val(tripLength);
} }
}); });
$("#Date_Start").datepicker({
format: 'mm/dd/yyyy',
autoclose: true,
startDate: '+2d'
});
}) })
</script> </script>
<style> <style>

Loading…
Cancel
Save