.val(value) documentation should discuss checkboxes more accurately
@AurelioDeRosa ci sta già lavorando.
Dal 19/12/2016.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
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
- Lingua principale
- HTML
- Stelle
- 324
- Fork
- 259
- Merge medio
- 1g 30m
- PR unite (30g)
- 1
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di jquery/api.jquery.com
-
Mention of ‘timestamp’ in documentation for ‘cache’ parameter of ‘ajax’ is misleadingForse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 62/100
jquery/api.jquery.com#1241 · 2 commenti ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 68/100
jquery/api.jquery.com#1176 ·
-
The documentation of CSS methods should be further classifiedForse di nuovo libera Una pull request per questa issue è stata chiusa senza essere unita. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 35/100
jquery/api.jquery.com#1281 · 2 commenti ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 35/100
jquery/api.jquery.com#1271 · 2 commenti ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 45/100
jquery/api.jquery.com#1259 ·