Skip to main content

Bug Tracker

Side navigation

#4939 closed bug (worksforme)

Opened July 22, 2009 05:23PM UTC

Closed November 18, 2009 02:53AM UTC

Using the not() filter negates the live() method

Reported by: webbower Owned by: brandon
Priority: major Milestone: 1.4
Component: event Version: 1.3.2
Keywords: Cc:
Blocked by: Blocking:

$('#list .entry').not('.doc_entry').live('click', function(e) {



This should apply the live click event handler to all elements with class="entry" inside id="list" that are not also class="doc_entry" however, the not() filter makes the live event binding fail.

Maybe I'm just writing the not() filter wrong, but removing it allowed the live event binding to work.

Attachments (0)
Change History (2)

Changed July 23, 2009 01:06AM UTC by dmethvin comment:1

I think it's working according to the limits in the docs:

Live events currently only work when used against a selector. For example, this would work: $("li a").live(...) but this would not: $("a", someElement).live(...) and neither would this: $("a").parent().live(...).

Changed November 18, 2009 02:53AM UTC by dmethvin comment:2

resolution: → worksforme
status: newclosed

Working as documented.