3
我在我的应用程序中使用struts2-jquery插件,我使用它的sj:一个组件来提交表单。Struts2 jquery构象
这是我的代码。
<s:iterator value="countryList" var="country">
<s:form id="frm%{countryID}" action="add_country_save">
<s:textfield name="country.countryName" size="40" id="txt%{countryID}"/>
</s:form>
<sj:a id="ah%{countryID}" formIds="frm%{countryID}"
targets="add_country" button="true" > Delete </sj:a>
</s:iterator>
一切正常,直到需求提出,我必须在提交表单之前显示确认对话框。
这实际上是我试图实现的。
如果用户点击确定,表单提交将被提交。 如果用户点击取消,表单提交将被取消。
如果有人有解决方案,请与我分享。
感谢的
谢谢你..没关系 – edaklij 2013-02-23 09:41:33