Bug Tracker

Modify

Ticket #8378 (closed bug: invalid)

Opened 2 years ago

Last modified 2 years ago

.not().live()

Reported by: dpustovarov@… Owned by:
Priority: low Milestone: 1.next
Component: event Version: 1.5
Keywords: Cc:
Blocking: Blocked by:

Description

$('form').not('.confirm').live('submit', ... does not work. Event is not catched.

$('form:not(.confirm)').live('submit', ... ok

It seems they both should have the same behavior.

Change History

comment:1 Changed 2 years ago by ajpiano

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

Thanks for your time and interest in helping with jQuery, but this is expected behaviour.

From the  docs

"DOM traversal methods are not supported for finding elements to send to .live(). Rather, the .live() method should always be called directly after a selector."

comment:2 Changed 2 years ago by jitter

  • Priority changed from undecided to low
  • Component changed from unfiled to event

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.