Bug Tracker

Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#8378 closed bug (invalid)

.not().live()

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

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 (2)

comment:1 Changed 9 years ago by ajpiano

Resolution: invalid
Status: newclosed

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 9 years ago by jitter

Component: unfiledevent
Priority: undecidedlow
Note: See TracTickets for help on using tickets.