Modify ↓
Ticket #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: | ||
| Blocking: | Blocked by: |
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
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

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