0
我使用此代碼,以查看捐贈的價值是否在30以上然後要求航運,如果不是然後不要求航運,但是當我輸入一個值少於30 paypal does not經過貝寶不通過詢問航運陳述如果低於30
function askShipping(){
var amount = $("#amount").val();
if(amount == ''){
alert('Please enter Donation amount');
return false;
}
if(amount >= 30){
var ret = shipSuccess();
return false;
}
return false;
}
function shipSuccess(){
$("#dialog:ui-dialog").dialog("destroy");
$("#dialog-success").dialog({
height: 260,
modal: true,
buttons: {
"yes": function(){
$(this).dialog("close");
shippingForm();
// document.donationForm.submit();
},
Cancel: function() {
$(this).dialog("close");
document.donationForm.submit();
}
}
});
}