# toggle-class-button

> jQuery plugin for toggling class names on a target element when triggering an event on another element

Latest version **1.0.0** (published 2017-06-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install toggle-class-button
pnpm add toggle-class-button
yarn add toggle-class-button
bun add toggle-class-button
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2017-06-29 |
| First published | 2017-06-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Brian Berg |
| Maintainers | bberg |
| Keywords | jquery-plugin, jquery, toggle, DOM Manipulation, class |

## Links

- npm: https://www.npmjs.com/package/toggle-class-button
- Homepage: https://github.com/bberg11/jquery-toggleClassButton
- npm.io page: https://npm.io/package/toggle-class-button

## Dependencies (1)

- [jquery](https://npm.io/package/jquery.md) >=1.5.1

## Alternatives

- [gamedig](https://npm.io/package/gamedig.md) — 29.3K weekly downloads
- [join-monster](https://npm.io/package/join-monster.md) — 12.8K weekly downloads
- [masked](https://npm.io/package/masked.md) — 5.5K weekly downloads
- [@comunica/actor-query-process-explain-logical](https://npm.io/package/@comunica/actor-query-process-explain-logical.md) — 4.7K weekly downloads
- [@veracity/vui](https://npm.io/package/@veracity/vui.md) — 4.6K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2017-06-29

## README

# jQuery Toggle Class Button

jQuery plugin for toggling class names on a target element when triggering an event on another element

## Installation

```html
<script type="text/javascript" src="/path/to/jquery"></script>
<script type="text/javascript" src="/path/to/jquery.toggleClassButton"></script>
```
## Options

Option | Type | Default | Description
------ | ---- | ------- | -----------
event | string | 'event' | Choose any jQuery event to trigger toggle
target | string | '' | jQuery selector for element you want class toggle on
className | string | '' | class name you want toggled
context | string | 'body' | jQuery selector for a context to query the target within

---
_Source: https://npm.io/package/toggle-class-button · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
