<form action="user/PPPOE" name="pppoeForm"
onsubmit="return CheckPost();">
<span> 数据口:</span> <select name="Access">
<c:forEach var="dc" items="${dataNc}">
<option value="${dc.name}">${dc.name}</option>
</c:forEach>
</select> <br /> <br /> <span> 用户名: </span><input
type="text" name="name" required="required"><br /> <br />
<span> 密码: </span><input
type="password" name="pwd" required="required"><br /> <br />
<input type="submit" name="submit" value="确定" />
</form>
<div id="showResult"
style="color: #33CC70; position: absolute; top: 80px; left: 20em;">
</div>
js
<script language="javascript">
var submitcount=0;
function CheckPost ()
{
if (submitcount == 0){
$("#showResult").append("<div><img src='../admin/img/abc.gif' /><div>");
submitcount++;
return true;
}else{
alert("正在操作,请不要重复提交,谢谢!");
return false;
}
}
</script>
效果图:
gif图