Skip to content

Commit

Permalink
docs: Change exclude defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
pjjonesnz committed Jan 17, 2020
1 parent 9862e51 commit ab63a95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ You can pass options into Save My Form when you initialize the plugin. The defau

``` javascript
$("#form_id").saveMyForm({
exclude: ':password, :hidden, :file, .disable_save',
exclude: ':password, input[type="hidden"], :file, .disable_save',
include: null,
formName: undefined,
addPathToName: false,
Expand Down Expand Up @@ -97,7 +97,7 @@ The available options are:

### Notes about the script options

#### `exclude: ':password, :hidden, :file, .disable_save'`
#### `exclude: ':password, input[type="hidden"], :file, .disable_save'`

The default settings in the 'exclude' option means that password, hidden and file-upload type fields aren't saved to the browser (of course all this information will be submitted to your website - it just isn't stored in the localStorage of the user's browser if they shut it down).

Expand Down

0 comments on commit ab63a95

Please sign in to comment.