{"id":17105830,"url":"https://github.com/vebersol/jquery-custom-forms","last_synced_at":"2025-04-13T01:20:31.534Z","repository":{"id":3194255,"uuid":"4227224","full_name":"vebersol/jQuery-Custom-Forms","owner":"vebersol","description":"A plugin to generate custom forms with accessibility","archived":false,"fork":false,"pushed_at":"2015-09-08T02:47:04.000Z","size":278,"stargazers_count":17,"open_issues_count":3,"forks_count":10,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-26T19:11:15.343Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/vebersol.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":"2012-05-04T17:15:47.000Z","updated_at":"2018-07-25T23:07:09.000Z","dependencies_parsed_at":"2022-08-27T02:15:40.219Z","dependency_job_id":null,"html_url":"https://github.com/vebersol/jQuery-Custom-Forms","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vebersol%2FjQuery-Custom-Forms","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vebersol%2FjQuery-Custom-Forms/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vebersol%2FjQuery-Custom-Forms/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vebersol%2FjQuery-Custom-Forms/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vebersol","download_url":"https://codeload.github.com/vebersol/jQuery-Custom-Forms/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248651038,"owners_count":21139734,"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-10-14T15:43:09.929Z","updated_at":"2025-04-13T01:20:31.511Z","avatar_url":"https://github.com/vebersol.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jQuery Custom Forms\n\nA plugin to generate accessible custom forms: select, radio, checkbox.\n\nDemo: http://vebersol.net/demos/jquery-custom-forms/\n\n# Usage\n\n```html\n\u003c!-- Add jQuery and the plugin file in your HTML page --\u003e\n\u003cscript type=\"text/javascript\" src=\"http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js\"\u003e\u003c/script\u003e\n\u003cscript type=\"text/javascript\" src=\"custom.forms.jquery.js\"\u003e\u003c/script\u003e\n\n\u003c!-- Add the class \"cform\" to all elements that you want to use as custom form --\u003e\n\u003cselect name=\"data[select]\" class=\"cform\"\u003e\n\t\u003coption value=\"\"\u003e\u003c/option\u003e\n\t\u003coption value=\"1\"\u003eOption 1\u003c/option\u003e\n\t\u003coption value=\"2\"\u003eOption 2\u003c/option\u003e\n\u003c/select\u003e\n\n\u003cinput type=\"radio\" name=\"data[radio]\" value=\"option1\" id=\"option1\" class=\"cform\"\u003e\n\n\u003cinput type=\"checkbox\" name=\"data[check]\" value=\"female\" id=\"optiona\" class=\"cform\"\u003e\n\n\u003c!-- Setup the plugin and enjoy yourself! --\u003e\n\u003cscript type=\"text/javascript\"\u003e\n\t$(function() {\n\t\t$('form').customForm();\n\t});\n\u003c/script\u003e\n```\n\n# API\n\n### $.customForm(options)\n\nUse this method to build the custom forms.\n\n### Options\n\nOptions should be an object like:\n\n```javascript\nvar options = {\n\tprefix: 'my-own-prefix',\n\tkeyClass: 'my-own-key-class',\n\tenableWrapper: false\n};\n\n$.customForm(options);\n```\n\n* **prefix:** (String)  \nA prefix to add to all class names used on elements created by this plugin.  \n*Default value: 'custom-form-'*\n\n* **keyClass:** (String)  \nThe class used to allow element to be replaced by a custom form element.  \n*Default value: 'cform'*\n\n* **enableWrapper:** (String)  \nA boolean to enable a wrapper around the custom element and the original element. Very usefull to change position of the element.  \n*Default value: false*\n\n# License\n\nMIT License - http://www.opensource.org/licenses/MIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvebersol%2Fjquery-custom-forms","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvebersol%2Fjquery-custom-forms","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvebersol%2Fjquery-custom-forms/lists"}