安稳先生 - 2012/4/18 11:22:13
admin/modules_setting.aspx 这个页面点击保存时出现js错语 admin/modules_setting.aspx
行: 160
错误: 'validateType' 为空或不是对象
jumbot - 2012/4/19 16:22:39
- <script type="text/javascript">
- $(document).ready(function(){
- $.formValidator.initConfig({validatorGroup:"1",onError:function(msg){alert(msg);}});
- $("#txtAdminUploadType").formValidator({validatorGroup:"1",tipid:"tipAdminUploadType",onshow:"半角分号隔开",onfocus:"半角分号隔开"}).InputValidator({min:1,onerror:"必须填写"});
- $("#txtAdminUploadSize").formValidator({validatorGroup:"1",tipid:"tipAdminUploadSize",onshow:"单位为KB",onfocus:"单位为KB"}).RegexValidator({regexp:"num1",datatype:"enum",onerror:"格式不正确"});
- $.formValidator.initConfig({validatorGroup:"2",onError:function(msg){/*alert(msg)*/}});
- $("#txtUserUploadType").formValidator({validatorGroup:"2",tipid:"tipUserUploadType",onshow:"半角分号隔开",onfocus:"半角分号隔开"}).InputValidator({min:1,onerror:"必须填写"});
- $("#txtUserUploadSize").formValidator({validatorGroup:"2",tipid:"tipUserUploadSize",onshow:"单位为KB",onfocus:"单位为KB"}).RegexValidator({regexp:"num1",datatype:"enum",onerror:"格式不正确"});
- });
- function Button1_onclick() {
- return $.formValidator.PageIsValid('1');
- }
- function Button2_onclick() {
- return $.formValidator.PageIsValid('2');
- }
- </script>
复制代码
安稳先生 - 2012/4/19 19:54:54
亲人啊 谢谢了 :-D
经测试 好用,神人啊