Skip to content

Commit

Permalink
Document Cheerio#serialzeArray
Browse files Browse the repository at this point in the history
  • Loading branch information
jugglinmike committed Mar 1, 2015
1 parent 5e5ca1c commit 81150b7
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 @@ -238,6 +238,16 @@ $('.apple.green').toggleClass('fruit green red', true).html()
#### .is( function(index) )
Checks the current list of elements and returns `true` if _any_ of the elements match the selector. If using an element or Cheerio selection, returns `true` if _any_ of the elements match. If using a predicate function, the function is executed in the context of the selected element, so `this` refers to the current element.

### Forms

#### .serializeArray()

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

```js
$('<form><input name="foo" value="bar" /></form>').serializeArray()
//=> [ { name: 'foo', valule: 'bar' } ]
```

### Traversing

Expand Down

0 comments on commit 81150b7

Please sign in to comment.