FilterByData jQuery Plugin: Select by HTML5 Data Attr Value (elijahmanor.com) 7 points by dcneiner 15y ago ↗ HN
[–] jonathansampson 15y ago ↗ Awesome, man. I can't say how many times I've found myself in the same situation. Nice solution, and happy to see there's something I can use in the future instead of writing and rewriting the same/similar logic. [–] elijahmanor 15y ago ↗ Thanks... yeah I'm also working on a selector filter to do partial matches on html5 data attribute names.So if you have data-mytype & data-mytyphoon you can match both of them with one selector doing a starts with type syntax.The idea is similar to the attribute selectors native in jQuery. I should be posting it soon.
[–] elijahmanor 15y ago ↗ Thanks... yeah I'm also working on a selector filter to do partial matches on html5 data attribute names.So if you have data-mytype & data-mytyphoon you can match both of them with one selector doing a starts with type syntax.The idea is similar to the attribute selectors native in jQuery. I should be posting it soon.
2 comments
[ 3.5 ms ] story [ 14.0 ms ] threadSo if you have data-mytype & data-mytyphoon you can match both of them with one selector doing a starts with type syntax.
The idea is similar to the attribute selectors native in jQuery. I should be posting it soon.