【发布时间】:2021-12-08 19:53:04
【问题描述】:
我有一个表单,并且在该复选框和按钮中存在,单击按钮时,数据正在提交并插入到数据库中,但是我的页面正在刷新,我希望我的数据应该提交并插入到数据库中页面不应在 thymeleaf spring boot 中刷新。复选框中的值循环显示。我当前的代码是:
<form class="myform myform-newaccount" action="#" id="myForm"
th:action="@{/authorList?buttonValue=pluginlist}"
th:object="${userModifyDto}" method="post">
<input type="checkbox" name="applicationId" th:field="*{applicationIds}" id="myCheck"
th:value="${option.applicationId}" />
<input type="submit" value="send" id="myid"/>
</form>
【问题讨论】:
标签: html spring button input thymeleaf