Modify ↓
Ticket #6758 (closed bug: invalid)
.die() working only with same selector to live
| Reported by: | Frank84 | Owned by: | |
|---|---|---|---|
| Priority: | undecided | Milestone: | 1.4.3 |
| Component: | event | Version: | 1.4.2 |
| Keywords: | die | Cc: | |
| Blocking: | Blocked by: |
Description
For html
<a class="sc_OK">AAA</a><br> <a class="sc_OK" id="my_way">BBB</a><br> <a class="sc_OK" id="her_way">WWW</a>
after applying jQuery commands
$('.sc_OK').live('click',function(){alert(1);}); $('#my_way').die('click');
We will still see alert clicking on BBB.
Thanks for what you're doing, as for now I'll try different way for my task.
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.

You need to match the selectors for live/die.