There is a simple form that is generated in php. can i work with it using vue.js?
<form> <input type="text" name="title" value="article one"> <textarea name="description">some text</textarea> <button>Send</button> </form>
With jquery, I did this:
$('form').on('submit', function () { var data = $(this).serialize(); .... $.ajax({ .... }); });
How can I get data from a form using Vue.js? I certainly understand that you can use the v-model
but the data in the form is already registered.
@submit="handlingFunction"
handler" handler on the form and perform the necessary checks in thehandlingFunction
function - smellyshovel