Modify ↓
Ticket #7123 (closed bug: fixed)
<input|checkbox>.val(array-of-values) does not update checked attribute properly if array-of-values are numbers
| Reported by: | FondDuLac | Owned by: | john |
|---|---|---|---|
| Priority: | low | Milestone: | 1.4.3 |
| Component: | attributes | Version: | 1.3.2 |
| Keywords: | radio, val() | Cc: | |
| Blocking: | Blocked by: |
Description
Inside val(), value has been turned into a string if it is a number, but the same check and cast are not performed in the jQuery.InArray(this.value, value) when array[i] is === compared to value.
Change History
comment:3 Changed 5 weeks ago by snover
- need changed from Review to Patch
- Priority changed from undecided to low
- Component changed from unfiled to attributes
comment:4 Changed 4 weeks ago by snover
- need changed from Patch to Commit
- Owner changed from snover to john
- Status changed from assigned to new
Please use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

I have a patch for this, working on unit tests.