Opened 13 years ago
Closed 12 years ago
#6988 closed bug (fixed)
val(['option1', 'option2']) don't work in <select multiple="multiple"> if <option> have attribute value="value"
Reported by: | miwol | Owned by: | |
---|---|---|---|
Priority: | undecided | Milestone: | 1.4.3 |
Component: | attributes | Version: | 1.4.2 |
Keywords: | select miltiple val | Cc: | |
Blocked by: | Blocking: |
Description
I found a problem with <select multiple="multiple"> and val(). $('select').val(['option1', 'option2']) work correct with <option>option1</option>. When a write <option value="1">option1</option> then jQuery select nothing. $('select').val([1, 2]) select nothing too.
Attachments (2)
Change History (4)
Changed 13 years ago by
Attachment: | test.2.html added |
---|
Changed 13 years ago by
comment:1 Changed 12 years ago by
Priority: | → undecided |
---|
comment:2 Changed 12 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
This appears fixed in 1.4.3.
Version 0, edited 12 years ago
by
(next)
Note: See
TracTickets for help on using
tickets.
Further discussion, suggested patch, refutation of bug:
http://github.com/jquery/jquery/pull/30