📤

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