{"id":15622818,"url":"https://github.com/rjz/jquery-domdatasource","last_synced_at":"2025-09-13T15:52:13.435Z","repository":{"id":66735295,"uuid":"4243136","full_name":"rjz/jquery-domdatasource","owner":"rjz","description":"Did you say bootstrap? A little jQuery magic turns the DOM into a rich data source.","archived":false,"fork":false,"pushed_at":"2012-05-15T18:53:59.000Z","size":137,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-29T16:32:05.192Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/rjz.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-06T18:29:37.000Z","updated_at":"2013-10-04T21:10:14.000Z","dependencies_parsed_at":"2023-02-20T10:30:21.692Z","dependency_job_id":null,"html_url":"https://github.com/rjz/jquery-domdatasource","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rjz/jquery-domdatasource","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rjz%2Fjquery-domdatasource","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rjz%2Fjquery-domdatasource/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rjz%2Fjquery-domdatasource/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rjz%2Fjquery-domdatasource/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rjz","download_url":"https://codeload.github.com/rjz/jquery-domdatasource/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rjz%2Fjquery-domdatasource/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274988455,"owners_count":25386546,"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-09-13T02:00:10.085Z","response_time":70,"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-10-03T09:55:20.168Z","updated_at":"2025-09-13T15:52:13.399Z","avatar_url":"https://github.com/rjz.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"jQuery.DOMDataSource\n====================\n\nJust a simple interface for getting data from the DOM into Javascript.\n\nUsage\n-----\n\nTo retrieve semantic data stored in the DOM, pass a hash of accepted attributes to `$.DOMDataSource`:\n\n    \u003cdiv class=\"car\"\u003e\n      \u003cspan class=\"color\"\u003eyellow\u003c/span\u003e\n      \u003cspan class=\"make\"\u003edodge\u003c/span\u003e\n      \u003cspan class=\"model\"\u003edart\u003c/span\u003e\n    \u003c/div\u003e\n\n    jQuery(document).ready(function ($) {\n\n      var attributes = {\n        color: '',\n        make: '',\n        model: ''\n      };\n\n      var car = $('.car').DOMDataSource(attributes);\n    });\n\nCollections of data can also be retrieved from lists:\n\n    \u003cul\u003e\n      \u003cli\u003e\n        \u003cspan class=\"color\"\u003eblue\u003c/span\u003e\n        \u003cspan class=\"make\"\u003eamc\u003c/span\u003e\n        \u003cspan class=\"model\"\u003ehornet\u003c/span\u003e\n      \u003c/li\u003e\n      \u003cli\u003e\n        \u003cspan class=\"color\"\u003eorange\u003c/span\u003e\n        \u003cspan class=\"make\"\u003echevrolet\u003c/span\u003e\n        \u003cspan class=\"model\"\u003ecorvair\u003c/span\u003e\n      \u003c/li\u003e\n    \u003c/ul\u003e\n\n    // in script:\n    var cars = $('ul').DOMDataSource(attributes);\n\nFinally, data may also be sourced from tables. Note that tables will try and convert the column headers into attribute keys.\n\n    \u003ctable\u003e\n      \u003cthead\u003e\n        \u003ctr\u003e\n          \u003cth\u003eColor\u003c/th\u003e\n          \u003cth\u003eMake\u003c/th\u003e\n          \u003cth\u003eModel\u003c/th\u003e\n        \u003c/tr\u003e\n      \u003c/thead\u003e\n      \u003ctbody\u003e\n        \u003ctr\u003e\n          \u003ctd\u003egreen\u003c/td\u003e\n          \u003ctd\u003eoldsmobile\u003c/td\u003e\n          \u003ctd\u003ewoodie\u003c/td\u003e\n        \u003c/tr\u003e\n        \u003ctr\u003e\n          \u003ctd\u003esilver\u003c/td\u003e\n          \u003ctd\u003edmc\u003c/td\u003e\n          \u003ctd\u003edelorean\u003c/td\u003e\n        \u003c/tr\u003e\n      \u003c/tbody\u003e\n    \u003c/table\u003e\n\n    // in script:\n    var cars = $('table').DOMDataSource(attributes);\n\nAuthor\n------\n\nRJ Zaworski \u003crj@rjzaworski.com\u003e\n\nLicense\n-------\n\nThe jquery.DOMDataSource plugin is released under the WTFPL License. You can read the license [here](http://sam.zoy.org/wtfpl/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frjz%2Fjquery-domdatasource","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frjz%2Fjquery-domdatasource","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frjz%2Fjquery-domdatasource/lists"}