jquery / jquery/api.jquery.com
.val(value) documentation should discuss checkboxes more accurately
Open
@AurelioDeRosa is already working on this.
Since Dec 19, 2016.
- Dominant language
- HTML
- Stars
- 325
- Forks
- 260
- PR merge metrics
- No merged PRs in 30d
Description
I created the following issue on the jQuery forums:
http://forum.jquery.com/topic/val-value-does-not-work-on-checkboxes-if-value-is-not-an-array
I like the alternative method brought up by Jake, as it seems more clean. The way that jQuery works does make sense; however, the documentation is misleading. It doesn't state that the use of an Array is required, rather it states that you can use Arrays. I would add a note related to Jakes alternate method for checkboxes, as a better way of working with checkboxes.
Take it easy,
Will
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.