You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
617 B
JavaScript
29 lines
617 B
JavaScript
// 目的地普通线路 表单对应JS
|
|
$(function(){
|
|
$("#btn_submit").click(function(e) {
|
|
if (CheckSubmit()){
|
|
$("#myform").submit();
|
|
}
|
|
});
|
|
});
|
|
|
|
function CheckSubmit(){
|
|
|
|
if ($("#Starting_Date").val()==""){
|
|
alert("Please select the travel date.");
|
|
$("#Starting_Date").focus();
|
|
return false;
|
|
}
|
|
|
|
if (isNaN($("#Adults_Num").val())){
|
|
alert("Need an adults at least.");
|
|
$("#Adults_Num").focus();
|
|
return false;
|
|
}
|
|
|
|
var TravelType = $("#PAG_SN2").find("option:selected").attr("data");
|
|
//alert(TravelType);
|
|
$("#TransferType").val(TravelType);
|
|
return true;
|
|
|
|
} |