Bug Tracker

Modify

Ticket #11419 (closed bug: invalid)

Opened 15 months ago

Last modified 15 months ago

live()

Reported by: liulinpeng@… Owned by: liulinpeng@…
Priority: undecided Milestone: None
Component: unfiled Version: 1.7.1
Keywords: Cc:
Blocking: Blocked by:

Description

$(el).selector = ;

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

no work;

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

ul.live('click',ulClick);

Change History

comment:1 Changed 15 months ago by sindresorhus

  • Owner set to liulinpeng@…
  • Status changed from new to pending

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 15 months ago by dmethvin

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

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

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

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.