Skip to main content

Bug Tracker

Side navigation

#6396 closed bug (invalid)

Opened April 04, 2010 03:53AM UTC

Closed April 07, 2010 12:33AM UTC

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>

Attachments (0)
Change History (1)

Changed April 07, 2010 12:33AM UTC by dmethvin comment:1

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( ... )