{"id":22062490,"url":"https://github.com/xucongli1989/jqueryvalidateextendmethod","last_synced_at":"2026-04-28T20:37:30.354Z","repository":{"id":87768699,"uuid":"41297178","full_name":"xucongli1989/jqueryValidateExtendMethod","owner":"xucongli1989","description":"jquery.validate.js 自定义扩展验证方法","archived":false,"fork":false,"pushed_at":"2016-08-11T14:23:41.000Z","size":4,"stargazers_count":1,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-28T23:30:35.612Z","etag":null,"topics":["ajax","javascript","jquery","jquery-plugin","jquery-validate","jquery-validation"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xucongli1989.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-08-24T10:28:55.000Z","updated_at":"2019-10-26T01:15:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"1e6e39df-214d-48ba-9d79-566c19e81d26","html_url":"https://github.com/xucongli1989/jqueryValidateExtendMethod","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xucongli1989%2FjqueryValidateExtendMethod","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xucongli1989%2FjqueryValidateExtendMethod/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xucongli1989%2FjqueryValidateExtendMethod/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xucongli1989%2FjqueryValidateExtendMethod/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xucongli1989","download_url":"https://codeload.github.com/xucongli1989/jqueryValidateExtendMethod/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245143960,"owners_count":20568046,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ajax","javascript","jquery","jquery-plugin","jquery-validate","jquery-validation"],"created_at":"2024-11-30T18:20:30.282Z","updated_at":"2026-04-28T20:37:25.327Z","avatar_url":"https://github.com/xucongli1989.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 简介\n\n这是著名的jquery表单验证插件[jquery.validate.js](https://jqueryvalidation.org/) 的扩展验证方法库。\n\n# 部分扩展\n\n## ajax远程验证 ##\n\n注意：ajax返回的必须为json格式，且至少要包含IsSuccess（验证是否通过）、Message（提示信息）属性\n\n\u003cpre\u003e\nvar validator = $(\"form:first\").validate({\nrules: {\n    txtRoleName: {\n\trequired: true,\n\tXCLCustomRemote: {\n\t    url: \"http://www.x.com/xxx\",\n\t    data: {............}\n\t}\n    },\n    txtCode: {\n\tXCLCustomRemote: {\n\t    url: \"http://www.x.com/xxx\",\n\t    data: function () {//支持function\n\t\treturn {...........};\n\t    }\n\t}\n    },\n    txtMerchantID: {\n\trequired: true\n    }\n}\n});\n\u003c/pre\u003e\n\n## 自定义错误消息显示位置 ##\n\n如果被验证的元素存在\"JqValidShowErrorID\"属性，则将错误信息放到ID为该属性值的元素中，否则，则默认。\n当然，您也可以直接修改源代码，添加您所需要的其它信息。","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxucongli1989%2Fjqueryvalidateextendmethod","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxucongli1989%2Fjqueryvalidateextendmethod","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxucongli1989%2Fjqueryvalidateextendmethod/lists"}