Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 963 Bytes

README.md

File metadata and controls

25 lines (16 loc) · 963 Bytes

HTMX Validate Element

Node CI Taylor Swift Volkswagen GitHub License

This is a simple example of how to use HTMX to validate a form element.

Getting Started

htmx-validate is a simple example of how to use HTMX to validate a form element.

<div htmx-error-for="email-input" is="htmx-validate"></div>

The element listens for the following events.

  • htmx-validate:error - Triggered when the input is invalid.
  • htmx-validate:success - Triggered when the input is valid.

License

MIT