本文介绍了jQuery客户端验证中避免重复值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好,我有一个类似于
<div id="GridContainer">
<s:url id="loadGridURl" namespace="/workflow" action="getAll" />
<sjg:grid
id="PROCESS_LIST_GRID"
autowidth="true"
caption="Process List"
dataType="json"
filter="true"
filterOptions="{searchOnEnter : false}"
gridModel="gridData"
height="'223px'"
href="%{loadGridURl}"
loadonce="true"
pager="true"
rowNum="10"
rowList="10,20,30"
rownumbers="true" >
<sjg:gridColumn name="processName" index="processName" title="Process Name" search="true"
searchoptions="{sopt:['cn']}"/>
<sjg:gridColumn name="description" index="description" title="Description" search="false" />
<sjg:gridColumn name="createdDate" index="createdDate" title="Create Date" search="false" />
<sjg:gridColumn name="id" title="Action" formatter="processModifyDelete" search="false"/>
</sjg:grid>
</div>
,其中我通过
<sj:textfield name="workflowProcess.processName" id="PROCESS_NAME" cssClass="input_txt required" ></sj:textfield>
.对于提交,我使用
<sj:submit/>
.现在,我需要一个客户端验证,这样,如果我尝试将另一个具有相同名称的进程添加到网格中,它将出现字段错误.请帮助.在此先感谢:)
. Now I need a client side validation, such that if I try to add another process with the same name to grid, it should give a field error. Pls help. Thanks in advance :)
推荐答案
这篇关于jQuery客户端验证中避免重复值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!