Skip to content

Commit

Permalink
Add Missing serialize Documentation (#1111)
Browse files Browse the repository at this point in the history
  • Loading branch information
dhurlburtusa authored and fb55 committed Dec 25, 2017
1 parent e11f5cd commit 25a51d7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ Does your company use Cheerio in production? Please consider [sponsoring this pr
<details>
<summary>Forms</summary>

- [.serialize()](#serialize)
- [.serializeArray()](#serializearray)
</details>
<details>
Expand Down Expand Up @@ -429,6 +430,15 @@ Checks the current list of elements and returns `true` if _any_ of the elements

### Forms

#### .serialize()

Encodes a set of form elements as a URL query string.

```js
$('<form><input name="foo" value="bar" checked /><input name="foo" value="qux" checked /></form>').serialize()
//=> foo=bar&foo=qux
```

#### .serializeArray()

Encode a set of form elements as an array of names and values.
Expand Down

0 comments on commit 25a51d7

Please sign in to comment.