Modify ↓
Ticket #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: | |
| Blocking: | Blocked by: |
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
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

