✨
Framework
  • 👋Welcome to Shiny Framework
  • Overview
    • ✨Installation
  • Components
    • 🧱Creating a Component
    • 🏇Mounting a Component
  • Attributes
    • 👁️x-show
    • 🏷️x-text
    • 🔁x-sync
    • ⛓️x-model
    • 🎡x-for
    • 🪄x-bind
      • 🖼️x-bind:src
      • 🔗x-bind:href
      • 🎨x-bind:class
      • 🔤x-bind:value
      • ✅x-bind:checked
    • 👆x-on
      • 🖱️x-on:click
      • 🥖x-on:input
      • ☑️x-on:change
      • 📤x-on:submit
      • ⛰️x-on:mounted
  • JavaScript API
    • 🪄Reactive Store
      • ➡️Get Value
      • ⬅️Set Value
    • 🦄Custom Functions
  • Fetch Examples
    • ⬇️Get
    • ⬆️Post
Powered by GitBook
On this page
  • Overview
  • Example
  • Live Demo
  1. Attributes
  2. x-on

x-on:submit

Previousx-on:changeNextx-on:mounted

Last updated 2 years ago

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

👆
📤