Bug Tracker

Opened 8 years ago

Closed 8 years ago

#11419 closed bug (invalid)

live()

Reported by: liulinpeng@… Owned by: liulinpeng@…
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);

Change History (2)

comment:1 Changed 8 years ago by sindresorhus

Owner: set to liulinpeng@…
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.

comment:2 Changed 8 years ago by dmethvin

Resolution: invalid
Status: pendingclosed

var ul = $('<ul>').appendTo('body'); ul.live('click',ulClick);

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

Note: See TracTickets for help on using tickets.