留言板
I want to disable the submit button for the user.
anand gopalan,修改在10 年前。
I want to disable the submit button for the user.
Expert 帖子: 442 加入日期: 12-3-2 最近的帖子
I want to disable the submit button for the user.
User can submit only one time , if next time login in the page, submit button should disable, how to do that. Please help me.
my view.jsp code
<aui:form name="frmaddInvetoryDetails" id="frmaddInvetoryDetails" action="<%=processActionURL.toString()%>" method="post" onsubmit="document.getElementById('submitbtn').disabled=true">
..............
.............
<table id="dataTable3" border="0" class="tablespace">
<tr class="spaceUnder">
<td colspan="7"><aui:button name="submitAction" id="submitbtn" type="submit" value="Submit" /></td>
</tr>
</table>
but above is not working.
User can submit only one time , if next time login in the page, submit button should disable, how to do that. Please help me.
my view.jsp code
<aui:form name="frmaddInvetoryDetails" id="frmaddInvetoryDetails" action="<%=processActionURL.toString()%>" method="post" onsubmit="document.getElementById('submitbtn').disabled=true">
..............
.............
<table id="dataTable3" border="0" class="tablespace">
<tr class="spaceUnder">
<td colspan="7"><aui:button name="submitAction" id="submitbtn" type="submit" value="Submit" /></td>
</tr>
</table>
but above is not working.