|
|
|
@ -385,12 +385,14 @@
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
|
|
|
|
<span id="name_error_msg" style="color:#a31022;font-size:18px;" class="hidden">( Please fill out this field. )</span>
|
|
|
|
|
<div class="inputTerm">
|
|
|
|
|
<input type="text" name="name" required />
|
|
|
|
|
<label>
|
|
|
|
|
Full Name *
|
|
|
|
|
</label>
|
|
|
|
|
</div>
|
|
|
|
|
<span id="email_error_msg" style="color:#a31022;font-size:18px;" class="hidden">( Please fill out this field. )</span>
|
|
|
|
|
<div class="inputTerm">
|
|
|
|
|
<input type="email" name="email" required />
|
|
|
|
|
<label>
|
|
|
|
@ -400,6 +402,7 @@
|
|
|
|
|
<div class="formMemo">
|
|
|
|
|
All your ticket issues will be sent to your mailbox.
|
|
|
|
|
</div>
|
|
|
|
|
<span id="nation_error_msg" style="color:#a31022;font-size:18px;" class="hidden">( Please fill out this field. )</span>
|
|
|
|
|
<div class="inputTerm">
|
|
|
|
|
<input type="text" name="Nationality" required />
|
|
|
|
|
<label>
|
|
|
|
@ -471,9 +474,9 @@ $(function(){
|
|
|
|
|
var adultnumber = $('input[name="adultnumber"]').val();
|
|
|
|
|
var hotel = $('input[name="hotel"]:checked').val();
|
|
|
|
|
var destinations = $('input[name="destination[]"]').is(":checked");
|
|
|
|
|
console.log(hotel);
|
|
|
|
|
console.log(adultnumber);
|
|
|
|
|
console.log(destinations);
|
|
|
|
|
var name = $('input[name="name"]').val();
|
|
|
|
|
var email = $('input[name="email"]').val();
|
|
|
|
|
var Nationality = $('input[name="Nationality"]').val();
|
|
|
|
|
|
|
|
|
|
//目的地选择
|
|
|
|
|
if(destinations === false){
|
|
|
|
@ -483,7 +486,7 @@ $(function(){
|
|
|
|
|
$('#destination_error_msg').removeClass('hidden');
|
|
|
|
|
setTimeout(function(){
|
|
|
|
|
$('#destination_error_msg').addClass('hidden');
|
|
|
|
|
},3000);
|
|
|
|
|
},5000);
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -495,7 +498,7 @@ $(function(){
|
|
|
|
|
$('#hotel_error_msg').removeClass('hidden');
|
|
|
|
|
setTimeout(function(){
|
|
|
|
|
$('#hotel_error_msg').addClass('hidden');
|
|
|
|
|
},3000);
|
|
|
|
|
},5000);
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -508,7 +511,40 @@ $(function(){
|
|
|
|
|
$('#number_error_msg').removeClass('hidden');
|
|
|
|
|
setTimeout(function(){
|
|
|
|
|
$('#number_error_msg').addClass('hidden');
|
|
|
|
|
},3000);
|
|
|
|
|
},5000);
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//姓名验证
|
|
|
|
|
if(name == ''){
|
|
|
|
|
console.log('123');
|
|
|
|
|
$('input[name="name"]').focus();
|
|
|
|
|
$('#name_error_msg').removeClass('hidden');
|
|
|
|
|
setTimeout(function(){
|
|
|
|
|
$('#name_error_msg').addClass('hidden');
|
|
|
|
|
},5000);
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//邮箱验证
|
|
|
|
|
if(email == ''){
|
|
|
|
|
console.log('123');
|
|
|
|
|
$('input[name="email"]').focus();
|
|
|
|
|
$('#email_error_msg').removeClass('hidden');
|
|
|
|
|
setTimeout(function(){
|
|
|
|
|
$('#email_error_msg').addClass('hidden');
|
|
|
|
|
},5000);
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//国籍验证
|
|
|
|
|
if(Nationality == ''){
|
|
|
|
|
console.log('123');
|
|
|
|
|
$('input[name="Nationality"]').focus();
|
|
|
|
|
$('#nation_error_msg').removeClass('hidden');
|
|
|
|
|
setTimeout(function(){
|
|
|
|
|
$('#nation_error_msg').addClass('hidden');
|
|
|
|
|
},5000);
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|