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 comment:1
resolution: | → invalid |
---|---|
status: | new → closed |
Check the documentation for
-- it's not valid to use .live() in a chain like that.This should work fine: