如何在此代码中调用php文件并禁用它们?
function validate() {
var newevent = document.getElementById("chknewevent").checked;
if(newevent == true) { // unchecked
alert('sample');
return false;
} else {
alert("You are proceeding to Banquet Reservation"); //if checked
return true;
}
}