Skip to main content

Bug Tracker

Side navigation

#11419 closed bug (invalid)

Opened February 29, 2012 10:09AM UTC

Closed February 29, 2012 01:17PM UTC

live()

Reported by: liulinpeng@gmail.com Owned by: liulinpeng@gmail.com
Priority: undecided Milestone: None
Component: unfiled Version: 1.7.1
Keywords: Cc:
Blocked by: Blocking:
Description

$(el).selector = '';

$(el).live('click',fn);

no work;

example:

var ul = $('<ul>').appendTo('body')

ul.live('click',ulClick);

Attachments (0)
Change History (2)

Changed February 29, 2012 10:55AM UTC by sindresorhus comment:1

owner: → liulinpeng@gmail.com
status: newpending

Thanks for taking the time to contribute to the jQuery project! Please provide a complete reduced test case on jsFiddle to help us assess your ticket.

Additionally, be sure to test against the jQuery Edge version to ensure the issue still exists. To get you started, use this boilerplate: http://jsfiddle.net/FrKyN/ Open the link and click to "Fork" (in the top menu) to get started.

Changed February 29, 2012 01:17PM UTC by dmethvin comment:2

resolution: → invalid
status: pendingclosed
var ul = $('<ul>').appendTo('body'); ul.live('click',ulClick);

Not supported, read the docs for .live().