0

当我单击确认框按钮并尝试在隐藏字段中设置值时,它显示此错误:

无法使用 javascript 在隐藏字段中设置确认框值

function Confirm() {
  var confirm_value = document.getElementById('<%=hdnConfirm.ClientID%>');
  var answer = confirm("Record saved successfully!want to scan document?");
  if (answer) {
    confirm_value.value = "Yes";
    return true;
  } else {
    confirm_value.value = "No";
    return false;
  }
}
4

0 回答 0