{"id":19319174,"url":"https://github.com/ericrabil/abverify.js","last_synced_at":"2025-07-26T14:39:27.589Z","repository":{"id":125574594,"uuid":"143017364","full_name":"EricRabil/ABVerify.js","owner":"EricRabil","description":"An extensive jQuery form verification plugin","archived":false,"fork":false,"pushed_at":"2016-12-25T17:05:01.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-24T05:12:35.411Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":false,"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/EricRabil.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-07-31T13:23:35.000Z","updated_at":"2018-07-31T13:24:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"79368174-860d-4832-b73b-f4e2ca0ef98f","html_url":"https://github.com/EricRabil/ABVerify.js","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/EricRabil/ABVerify.js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EricRabil%2FABVerify.js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EricRabil%2FABVerify.js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EricRabil%2FABVerify.js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EricRabil%2FABVerify.js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EricRabil","download_url":"https://codeload.github.com/EricRabil/ABVerify.js/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EricRabil%2FABVerify.js/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267179573,"owners_count":24048371,"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","status":"online","status_checked_at":"2025-07-26T02:00:08.937Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-11-10T01:22:27.100Z","updated_at":"2025-07-26T14:39:27.573Z","avatar_url":"https://github.com/EricRabil.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"**ABVerify.js is deprecated and will no longer be updated.**\n\n# ABVerify.js\nAn extensive jQuery form verification plugin. Verify that forms have the correct data in them before allowing them to submit\n\n**Dependencies:** jQuery\n\n## Features\n\n- Easy to use\n- Only one line of JavaScript required\n- Use of HTML attributes\n- Huge selection of value checks\n- Scroll to first incorrect field\n- Custom CSS for incorrect fields\n\n## Installing\n\n1. Add the [ABVerify.js file](https://github.com/AppleBetas/ABVerify.js/raw/master/ABVerify.js) to a directory on your server\n2. Add a `\u003cscript\u003e` tag leading to the script\n\n## Usage\n\nOn any `\u003cform\u003e` element in your HTML, use the jQuery method `.ABVerify()` on it, like so:\n\n    $(\"form#myform\").ABVerify();\n\nThis will initialize ABVerify on that form element. Now whenever the form is submitted ABVerify will cancel the form if it doesn't meet the requirements.\n\n### Setting the requirements\n\nHow does ABVerify know what your form requirements are? Easy, it uses data attributes on the HTML elements of your form. We chose these because they can be easily changed with JavaScript and allow you to build forms and visualize them in the easiest way.\n\nThese are the available requirement types:\n\n#### Main types:\n\n- `required` - requires a value to be entered (accepts boolean - whether it is required or must be left blank)\n- `max-length` - specify a length that the form must be under (accepts whole numbers)\n- `min-length` - specify a length that the form must be under (accepts whole numbers)\n- `equal-to` - requires the value of the input be equal to an object (accepts any string)\n- `not-equal-to` - opposite of `equal-to` (accepts any string)\n\n#### Number-specific types:\n\n- `num-greater-than` - requires the value be greater than the specified number (accepts numbers)\n- `num-greater-than-or-equal-to` - requires the value be greater than or equal to the specified number (accepts numbers)\n- `num-less-than` - requires the value be less than the specified number (accepts numbers)\n- `num-less-than-or-equal-to` - requires the value be less than or equal to the specified number (accepts numbers)\n- `num-whole` - requires the number either be whole or not (accepts boolean - whether it must be whole or not)\n\nIf the value is not a number, all of these will fail.\n\n#### Text-specific types:\n\n- `text-contains` - requires the input contain specified text (accepts any string)\n- `text-doesnt-contain` - requires the input does not contain specified text (accepts any string)\n- `text-starts-with` - requires the input start with specified text (accepts any string)\n- `text-doesnt-start-with` - requires the input does not start with specified text (accepts any string)\n- `text-ends-with` - requires the input end with specified text (accepts any string)\n- `text-doesnt-end-with` - requires the input does not end with specified text (accepts any string)\n\n#### Type-checking types:\n\n- `is-email-address` - requires the value either be an email address or not (accepts boolean - whether it must be an email or not)\n- `is-url` - requires the value either be a URL or not (accepts boolean - whether it must be a URL or not)\n- `is-number` - requires the value either be a number or not (accepts boolean - whether it must be a number or not)\n\nThese attributes go on your `\u003cinput\u003e` or `\u003ctextarea\u003e` elements with the prefix `data-abverify-`\n\nFor example, if I wanted to make a field that accepts a number, but it must be between 5 and 10, I would do the following:\n\n    \u003cinput type=\"number\" data-abverify-num-greater-than=\"5\" data-abverify-num-less-than=\"10\" /\u003e\n\nNow the form won't submit until that number is between 5 and 10.\n\n*Note:* You can also make radio buttons required! Wrap them in a div, and give that element the `data-abverify-required` attribute.\n\n#### Custom verification messages\n\nABVerify will try and give your fields an appropriate message when it fails verification, but you can also add your own verification messages. Simply put the check name, with a suffix of `-message` and we will use that instead. In addition, if you want the form field to only have one message for all fails, instead of one message for each check failed, just use `data-abverify-message`.\n\n**Examples:**\n\n    \u003cinput type=\"number\" data-abverify-num-greater-than=\"5\" data-abverify-num-less-than=\"10\" data-abverify-message=\"Your number must be between 5 and 10.\" /\u003e\n    \u003cinput type=\"text\" data-abverify-text-starts-with=\"John\" data-abverify-text-doesnt-end-with=\"Smith\" data-abverify-text-starts-with-message=\"Your name must start with 'John'\" data-abverify-text-doesnt-end-with-message=\"Your name mustn't end with 'Smith'\" /\u003e\n\n### Styling\n\n#### Failed input (required):\n\nWhen an input does not meet requirements, it will get added the class `abverify-failed`. Please add this in your CSS. We recommend a red border or something of the sorts.\n\n#### Verification fail message (recommended): \n\nWhen an input does not meet requirements, it will also get a message added right after it telling the user what they did wrong. You can style these with the class `abverify-fail-text`. It is recommended you do this, and make the colour red or something similar.\n\n## Also important\n\nDo not use this alone, as nothing client-side can't be spoofed by the user. Please add the appropriate server-side verification in as well.\n\n## License\n\nI don't give a shit how you use it, just please keep the first 6 lines (with my info) intact. You are free to modify to your needs as long as those stay intact as well.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericrabil%2Fabverify.js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fericrabil%2Fabverify.js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericrabil%2Fabverify.js/lists"}