# mu-jquery-and

> jQuery expression for filtering elements

Latest version **0.0.3** (published 2017-06-16) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install mu-jquery-and
pnpm add mu-jquery-and
yarn add mu-jquery-and
bun add mu-jquery-and
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2017-06-16 |
| First published | 2017-05-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Mikael Karon |
| Maintainers | mikael.karon |

## Links

- npm: https://www.npmjs.com/package/mu-jquery-and
- Repository: https://github.com/mu-lib/mu-jquery-and
- Homepage: https://github.com/mu-lib/mu-jquery-and#readme
- Issues: https://github.com/mu-lib/mu-jquery-and/issues
- npm.io page: https://npm.io/package/mu-jquery-and

## Recent versions

- 0.0.3 (latest) — 2017-06-16
- 0.0.2 — 2017-06-15
- 0.0.1 — 2017-05-27

## README

# mu-jquery-and

jQuery expression for filtering elements.

## Installation

```
npm install mu-jquery-and
```

```
bower install mu-jquery-and
```

## Usage

```javascript
// AMD
require(["jquery", "mu-jquery-and/jquery.and"], function($, and) {
  $.expr[":"].and = and($);
});

// CJS
$.expr[":"].and  = require("mu-jquery-and/jquery.and")($);

// Global
$.expr[":"].and  = window["mu-jquery-and/jquery.and"]($);
```

```javascript
// Set the value of last to "Doe" if the value of first is "John" or "Jane"
$("input['name'='last']:and(input[name='first'][value='John'], input[name='first'][value='Jane'])").val("Doe");
```

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