An open API service indexing awesome lists of open source software.

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`.

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
```