Skip to content

Conversation

simshaun
Copy link
Contributor

Added 2 new options:

  • appendToError [default: false]
  • prependToError [default: false]

If specified, they will append or prepend content within all error elements.
They accept anything that jQuery's .prepend and .append methods accept.

These options are useful when making themed errors (e.g. speech bubbles) and need elements in your error containers to represent things (e.g. speech bubble arrow).

<label ...><em></em>Error message goes here</label>

- appendToError [default: false]
- prependToError [default: false]

If specified, they will append or prepend content within all error elements.
They accept anything that jQuery's .prepend and .append methods accept.

These options are useful when making themed errors (e.g. speech bubbles) and need elements in your error containers to represent things (e.g. speech bubble arrow).
<label ...><em></em>Error message goes here</label>
@mlynch
Copy link
Contributor

mlynch commented Mar 31, 2012

Hi simshuan. It seems you would be better served using the errorPlacement option. Can you try that and see if it's sufficient?

We do not want to add extra options to validate unless they are very useful and can't be done with existing options. Thanks.

@mlynch mlynch closed this Apr 2, 2012
@dschniepp
Copy link

Had the same Issue, what about the following solution dschniepp@f3fe45f?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants