For the complete documentation index, see llms.txt. This page is also available as Markdown.

πŸ“€x-on:submit

Overview

Attach an on-submit event listener to the form element.

Example

<form x-on:submit="submitForm($store, $event)">
    <input x-model="fields.first_name">
    <input x-model="fields.last_name">
</form>

Live Demo

Last updated