在这里,我不想从提交按钮传递参数。任何人都可以帮助我相应地提示确认消息
return confirm("Are you sure to Approve/Reject/Delete ?");
我的html代码
<form name="pendingrequest" id="pendingrequest" action="formhandler.php" method="POST" onsubmit="return confirmation(this);">
<table >
<tr>
<td><input type="submit" name="action" value="Approve"></td>
<td><input type="submit" name="action" value="Reject"></td>
<td><input type="submit" name="action" value="Delete"></td>
</tr>
</table>
</form>
例如,如果有人点击批准,我想要这个:
return confirm("Are you sure to Approve?");