[up-validate]
again recognizes the [up-fieldset]
attribute to find the form fragment
that should be replaced with validation results.
In the example below, changing the email
input would only validate the first fieldset:
<form action="/users" id="registration">
<div up-fieldset>
Validation message
<input type="text" name="email" up-validate />
</div>
<div up-fieldset>
Validation message
<input type="password" name="password" up-validate />
</div>
</form>
If you're upgrading from an older Unpoly version you should load unpoly-migrate.js
to polyfill deprecated APIs.
Changes handled by unpoly-migrate.js
are not considered breaking changes.
See our upgrading guide for details.