0
以下让我们使用Javascript处理表单的提交操作。如何在单个页面应用程序中重用表单
当提交表单时,我希望能够隐藏它,然后再使用它。不幸的是,这段代码有一些状态会阻止多次执行提交操作。
如何重置魔法隐藏状态?
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<form action="" method="post" onsubmit="console.log('Submitted'); return false;">
Your Name <br/>
<input type="text" name="name" id="name" />
<br/>
<input type="submit" id="submit" value="Submit" />
</form>
</body>
</html>
给您的表单的名称和编号。把它包裹在一个你可以隐藏的DIV中。使用Javascript来处理它的行为。 – durbnpoisn