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

https://github.com/raederdev/jqueryclassfilter

Tiny jQuery plugin that filters classes
https://github.com/raederdev/jqueryclassfilter

Last synced: 13 days ago
JSON representation

Tiny jQuery plugin that filters classes

Awesome Lists containing this project

README

          

jQueryClassFilter
====

jQuery class filter is a tiny (181 bytes) jQuery plugin that exposes a filter option for classes.
It's essentially Array.protoype.filter for classes.
All classes on the selected DOM element are passed to the supplied filter function.

**Example**:
Given the following div container:
```

```

Calling the plugin like this:
```$('#myDiv').filterClasses(name => name.startsWith('button'));```

Will results in:
```

```