Notifications
Clear all
BugOverflow
1
Posty
1
Users
0
Reactions
652
Widok
0
26/08/2021 9:29 am
Topic starter
example
1 Answer
0
26/08/2021 9:30 am
Topic starter
form code
<script> import axios from "axios"; export default { components: {axios}, methods: { getFormData(){ let myForm = document.getElementById('form'); return new FormData(myForm); }, formSend(){ axios.post(this.formAction, this.getFormData()); },
and button
<button type="button" role="button" class="btn btn-primary align-content-end" @click="formSend"> Send </button>