Node.js provides a Vue.js data() method. That method defines all my form templates (I have many).
Additionally, there is a value method to write/preset ALL defined template input types across ALL form templates. Great!
What’s the preferred way to get/set the value method from a button click event?
I prefer not to be looping through tabs/form (above post).
Is the button in the form or it is not?
If it is inside you can use the buttonClick event of the form and in it the event’s handler you can reset the form’s value with the val() method.
Here is a demo of resetting the form on the button click: https://codesandbox.io/s/infallible-paper-vp6erh