答案 0 :(得分:0)
这是由
引起的if (crty != 0 && fname != 0 && gname != 0) {
$.ajax({
type: "GET",
url: urlPA,
data: 'DATA',
success: function (response) {
alert(response);
/// when success the color of the textbox return to normal
$('#Courtesy').css('background-color', 'white');
// add other fields
},
datatype: "text"
});
} else { alert("Please fill up the required fields.");
////// when error the textbox background makes red
$('#Courtesy').css('background-color', 'red');
// add other fields
}
我改为下面修复它。
setType(Type.POPUP);