Press "Enter" to skip to content

submit提交前进行数据处理方式

<form name="cpform" method="post" autocomplete="off"
      action="admin.php?action=plugins&operation=config&identifier=antsun_reg_more&pmod=regmore" id="cpform" onsubmit="return check()">
function check() {
if (txtaccnew.length <= 0) {
alert('账号列表 不能为空');
return false;
}
if (txtaccnew.length > 500) {
alert('单次添加建议500条以内!');
return false;
}
let mbtn = document.getElementById("submit_addsubmit");
mbtn.innerHTML = '<span>程序执行中...</span>';
return true;
}

发表评论