I wouldn't suggest going the ".live" route if you plan on having a lot of children of "cat_list"....
using event delegation, there is one single event wired up that handles 1 child or 1200 children using ".live", you would have N number of events sitting there wired up where N is the number of children..... but whatever works i suppose On Dec 4, 3:35 am, Civette <la.cive...@gmail.com> wrote: > Well, after a few tests, this works fine : > > $("#cat_list > div").live("click", function() > { alert($(this).attr("id")); > > }); > > thanx