Bug Tracker

Opened 10 years ago

Closed 10 years ago

#6396 closed bug (invalid)

Live or children function bug

Reported by: bappy Owned by:
Priority: Milestone: 1.4.3
Component: unfiled Version: 1.4.2
Keywords: Cc:
Blocked by: Blocking:

Description

Bug: live action don't work but bind action works well with children. If you replace children with find function then it works well. $(document).ready(function(){ $('ul:first').children('li').live('click',function(){alert('work...')}); }

<ul> <li>test1</li> <li>test2</li> <li>test3</li> </ul>

Change History (1)

comment:1 Changed 10 years ago by dmethvin

Resolution: invalid
Status: newclosed

Check the documentation for .live() -- it's not valid to use .live() in a chain like that.

This should work fine:

$('ul:first > li').live( ... )

Note: See TracTickets for help on using tickets.