Skip to content

Commit

Permalink
Docs for updated idPrefix behaviour. Closes #5
Browse files Browse the repository at this point in the history
  • Loading branch information
powmedia committed Mar 16, 2012
1 parent c0abcdf commit 05cc2b0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Expand Up @@ -420,6 +420,8 @@ An array of field names (keys). Only the fields defined here will be added to th

A string that will be prefixed to the form DOM element IDs. Useful if you will have multiple forms on the same page. E.g. `idPrefix: 'user-'` will result in IDs like 'user-name', 'user-email', etc.

If not defined, the model's CID will be used as a prefix to avoid conflicts when there are multiple instances of the form on the page. To override this behaviour, pass a null value to `idPrefix`.

[Back to top](#top)


Expand Down

0 comments on commit 05cc2b0

Please sign in to comment.