prevent default submit vue js code example
Example 1: vuejs form prevent default event
<form
action="/"
v-on:submit.prevent="yourFunction"
>
...
</form>
Example 2: vue prevent button from submitting form
<form v-on:submit.prevent>
<form
action="/"
v-on:submit.prevent="yourFunction"
>
...
</form>
<form v-on:submit.prevent>