Modify ↓
Ticket #7221 (closed bug)
toggle() has problem with set of objects
| Reported by: | sapiensy@… | Owned by: | sapiensy@… |
|---|---|---|---|
| Priority: | undecided | Milestone: | 1.5 |
| Component: | unfiled | Version: | 1.5 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
I used toggle() to set of tables. After first click it shows and hides it as normal, but after second click it shows and hides only first object of this set. So I had to use something like that:
$('.payment_detailed').each(function() {
var t = $(this);
if(t.css('display') == 'none') {
t.css('display', 'table');
} else {
t.css('display', 'none');
}
});
Change History
comment:1 Changed 3 years ago by addyosmani
- Owner set to sapiensy@…
- Status changed from new to pending
comment:2 Changed 3 years ago by snover
- Milestone changed from 1.4.4 to 1.4.5
Retargeting due to severity of regressions in 1.4.3.
comment:3 Changed 3 years ago by trac-o-bot
- Status changed from pending to closed
Automatically closed due to 14 days of inactivity.
comment:14 Changed 2 years ago by john
- Version changed from 1.4.3 to 1.5
There wasn't a 1.4.5 release, was actually 1.5.
comment:15 Changed 2 years ago by john
- Milestone changed from 1.4.5 to 1.5
There was no 1.4.5 release, was actually 1.5.
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.

Can you please submit a complete test case using jsFiddle (or your own file) so that we can evaluate the complete that you experienced this bug in?