https://github.com/sandinmyjoints/jquery-has-class-like
Select elements by testing each of an element's classes for `pattern`.
https://github.com/sandinmyjoints/jquery-has-class-like
Last synced: 2 months ago
JSON representation
Select elements by testing each of an element's classes for `pattern`.
- Host: GitHub
- URL: https://github.com/sandinmyjoints/jquery-has-class-like
- Owner: sandinmyjoints
- Created: 2014-10-22T00:57:18.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-10-22T01:10:08.000Z (over 10 years ago)
- Last Synced: 2025-03-08T09:37:58.437Z (3 months ago)
- Language: JavaScript
- Size: 125 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
hasClassLike
===========Select elements by testing each of an element's classes for `pattern`.
Example
-------```html
```Find all elements that have a class that ends in "bar".
```js
$("[class$=bar]").length // 0 because "foobar" is not at the end of the `class` attribute.
$("*").hasClassLike(/bar$/).length // 1
```