Can't post a checkbox value directly from within a form element.
See original GitHub issue- What will it allow you to do that you can’t do today?
Post a checkbox value directly from within a form element.
- How will it make current work-arounds straightforward?
By including a hidden checkbox field into the DOM
<input type="checkbox" name="my-test1" id="my-test1" tabindex="-1" value="true">
which will keep track of the current checkbox value.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:8 (6 by maintainers)
Top Results From Across the Web
Checkbox value not submitting - Stack Overflow
1 Answer 1 ... Your HTML code is invalid – you can not have a form element as child of table . ......
Read more ><input type="checkbox"> - HTML: HyperText Markup Language
Note: If a checkbox is unchecked when its form is submitted, there is no value submitted to the server to represent its unchecked...
Read more >POSTing an Indeterminate Checkbox Value - CSS-Tricks
There is a such thing as an indeterminate checkbox value. It's a checkbox ( <input type="checkbox"> ) that isn't checked.
Read more >Checkboxes - The complete HTML5 tutorial
However, as with all input elements, you need to define a name for it to be usable - without a name, the element...
Read more >Can't change the value of a checkbox to other than the label
Aboout the pipe “|” but it is just not working in my code. ... <input type="checkbox" name="qualifications[]" value="国家資格キャリアコンサルタント">.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes 😦 think it is a very well needed feature. Do you intent to support direct population?
Using it in a small form built with Laravel’s Blade. Let’s say a simple login form with a remember me option. It is easier to simply populate the form and then submit with a regular post avoiding ajax calls.
But then we’ll also need a way to repopulate the checkbox without using v-model. This is possible with text fields but I can’t find a way for checkboxes.