Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to name the input for post requests #102

Closed
Shigeki1120 opened this issue Oct 24, 2016 · 4 comments
Closed

How to name the input for post requests #102

Shigeki1120 opened this issue Oct 24, 2016 · 4 comments

Comments

@Shigeki1120
Copy link

Shigeki1120 commented Oct 24, 2016

This is a noobish question, but how can I name an input for post requests, so I can save the input to database?

I want to use this component as a select box

<v-select name="tags"></v-select>

the one above did not work

@sagalbot
Copy link
Owner

Hi @shigg1120,

The component itself isn't a form input, so you'll need to use a hidden input.

<v-select value.sync="foo">
<input type="hidden" v-model="foo" name="foo" />

@Shigeki1120
Copy link
Author

appreciate your help

@mortezarajabi
Copy link

It is not working with version 3.1.0

@sagalbot
Copy link
Owner

@mortezarajabi looks to be working in this example https://codepen.io/sagalbot/pen/zZQJKW

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants