日期:2014-05-16 浏览次数:20603 次
//扩展表单校验 $.extend($.fn.validatebox.defaults.rules, { ..... equalTo: { validator: function (value, param) { return value == $(param[0]).val(); }, message: '两次输入的字符不一至' }, ......
<input name="PWD" type="Password" class="easyui-validatebox" required="true"> <input name="RePWD" type="Password" class="easyui-validatebox" required="true" validType="equalTo['#PWD']">