A
A
Anna1234567892020-11-29 11:21:01
JavaScript
Anna123456789, 2020-11-29 11:21:01

How to pass data from a form with a checkbox in vue to the post method?

There is a checkbox. How to correctly write a request to the server in order to pass in the url those checkbox items that were selected?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey, 2020-11-29
@AlexeyCaTHaR

Just like without vue )
A request is a request. In it you pass the data that needs to be sent.
And here you can process the form as you like.
You can have an onSubmit event, you can just hang a button and get data using css selectors by the button, you can impose v-model.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question