easyui ValidateBox validType字段设置多个校验规则
2015-12-09 16:06
609 查看
easyui ValidateBox validType字段设置多个校验规则
1、单个校验无参数:
2、单个校验有参数:
3、多个校验有参数:
4、在datagrid中,行字段可编辑并加入校验:
1、单个校验无参数:
<input id="vv" class="easyui-validatebox" data-options="required:true,validType:'email'" />
2、单个校验有参数:
<input id="pwd" name="pwd" type="password" class="easyui-validatebox" data-options="required:true" /> <input id="rpwd" name="rpwd" type="password" class="easyui-validatebox" required="required" validType="equals['#pwd']" />
3、多个校验有参数:
<input class="easyui-textbox" type="text" name="orgCode" data-options="validType:['complexValid[\'^[0-9a-zA-Z_\-]+$\',\'编码只能包含字母、数字、中划线、下划线\',\'${root}/org/ajax\',\'orgCode\',\'机构编码已被占用,换一个试试!\',\'orgId\']','checkLength[60]']"></input>
4、在datagrid中,行字段可编辑并加入校验:
<th data-options="field:'paramValue',width:130,halign:'center',editor:{type:'validatebox',options:{required:true,validType:'checkLength[64]'}}">参数值</th>
相关文章推荐
- android 事件处理机制之requestDisallowInterceptTouchEvent
- iOS系列UI篇——UIImageView
- 关于SOAPUI使用的技能
- 通过Fragments建立动态的界面 (UI)
- The type javax.servlet.ServletContext cannot be resolved. It is indirectly referenced from required
- 10_15.c先阻塞SIGQUIT信号,再释放。
- vector<struct st_jn_record_plan_week_info> *infoS = &m_PlanInfo[info[i].SubEquId];
- SQL Server2012中的SequenceNumber尝试
- UI -知识点回顾 三
- UIImageView常用属性
- easyui 正则验证电话号码的简单例子
- 【Solutions系列】As-Built Editing,属性编辑实用工具
- Android Studio 运行时出现 finished with non-zero exit value 2
- 在MySQL中创建实现自增的序列(Sequence)的教程
- 夺命雷公狗---PDO NO:6 使用PDO执行SQL语句之query
- 通过@Value注解读取.properties配置内容
- UIButton
- 自定义BlockingQueue的简单实现(含测试)
- UE正则表达式
- UILabel