Modify ↓
Ticket #9358 (closed bug: wontfix)
.attr -> .prob in version 1.6.1
| Reported by: | leongersen@… | Owned by: | |
|---|---|---|---|
| Priority: | low | Milestone: | 1.next |
| Component: | attributes | Version: | 1.6.1 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
Hello,
Even though te supposed fix in 1.6.1, the following still breaks when upgrading from 1.5.8:
var selectedIndex;
selectedIndex = $("#year_week").attr("selectedIndex");
$("#year_week").attr('selectedIndex', Math.max(selectedIndex - 1,0));
change_week();
The "attr" method doesnt work anymore. Replacing by .prob fixes the issue.
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.

Please see the blog post for 1.6.1 release. This explains some of the differences between attributes and properties. selectedIndex and a few of the other rare cases did work with attr in the past, but attr did not officially support these properties. prop is the correct method.