Bug Tracker

Ticket #6758 (closed bug: invalid)

Opened 4 years ago

Last modified 4 years ago

.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

comment:1 Changed 4 years ago by dmethvin

  • Priority set to undecided
  • Status changed from new to closed
  • Resolution set to invalid

You need to match the selectors for live/die.

Note: See TracTickets for help on using tickets.