{"id":23701137,"url":"https://github.com/ehanlin/jquery-field-validate","last_synced_at":"2026-01-29T10:30:15.392Z","repository":{"id":58222317,"uuid":"50976393","full_name":"eHanlin/jquery-field-validate","owner":"eHanlin","description":null,"archived":false,"fork":false,"pushed_at":"2017-09-15T04:09:57.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-30T10:02:52.494Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CoffeeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eHanlin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-02-03T05:28:15.000Z","updated_at":"2016-02-03T05:28:30.000Z","dependencies_parsed_at":"2022-08-31T02:51:55.576Z","dependency_job_id":null,"html_url":"https://github.com/eHanlin/jquery-field-validate","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eHanlin%2Fjquery-field-validate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eHanlin%2Fjquery-field-validate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eHanlin%2Fjquery-field-validate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eHanlin%2Fjquery-field-validate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eHanlin","download_url":"https://codeload.github.com/eHanlin/jquery-field-validate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239776608,"owners_count":19695142,"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":[],"created_at":"2024-12-30T09:32:13.839Z","updated_at":"2026-01-29T10:30:15.361Z","avatar_url":"https://github.com/eHanlin.png","language":"CoffeeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"jquery-field-validate\n========================================\n\n## Dependencies\n\n* jquery\n\n## Usage\n\n```\n$(\"input[type=\\\"email\\\"]\").fieldValidate({\n                           \n  validate:function( defer, value ){\n                           \n    if ( emailRule.test( value ) ) defer.resolve( \"success\" ); else defer.reject( \"email error\" );\n  },                       \n  success:function( value, $el ){\n                           \n    $message.html( value ).css( \"color\", \"green\" );\n  },                       \n                           \n  error:function( value, $el ){\n                           \n    $message.html( value ).css( \"color\", \"red\" );\n  }                        \n});      \n```\n\n## Callbacks\n\n### validate\n\nvalidate field value, call `resolve` if value is valid.\n\n### success\n\nrun a callback when `defer.resolve` is called.\n\n### error\n\nrun a callback when `defer.reject` is called.\n\n## Methods\n\n### valid : boolean\n\n```\n$(\"input[type=\\\"email\\\"]\").fieldValidate( \"valid\" )\n```\n\n### validate\n\ntrigger a `validate` callback\n\n```\n$(\"input[type=\\\"email\\\"]\").fieldValidate( \"validate\" )\n```\n\n### getNoValid\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fehanlin%2Fjquery-field-validate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fehanlin%2Fjquery-field-validate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fehanlin%2Fjquery-field-validate/lists"}