.val(value) documentation should discuss checkboxes more accurately
@AurelioDeRosa đang làm issue này rồi.
Từ ngày 19/12/2016.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
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
- Ngôn ngữ chính
- HTML
- Star
- 324
- Fork
- 259
- Merge trung bình
- 1 ngày 30 phút
- Pull request đã merge (30 ngày)
- 1
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của jquery/api.jquery.com
-
Mention of ‘timestamp’ in documentation for ‘cache’ parameter of ‘ajax’ is misleadingCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 62/100
jquery/api.jquery.com#1241 · 2 bình luận ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 68/100
jquery/api.jquery.com#1176 ·
-
The documentation of CSS methods should be further classifiedCó thể làm lại được Pull request cho issue này đã bị đóng mà không được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 35/100
jquery/api.jquery.com#1281 · 2 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 35/100
jquery/api.jquery.com#1271 · 2 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 45/100
jquery/api.jquery.com#1259 ·